Function at 0x42d71a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43adb8
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xa8]
test eax, eax
push edi
jne 0x42d769
cmp dword [esp + 0x80], 0xffffffff
je 0x42d769
mov ecx, dword [esi + 0x20]
mov eax, 1
lea edx, [esp + 0x30]
push edx
mov dword [esi + 0xa8], eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], 2
mov dword [esp + 0x40], eax
call dword [0x43c024]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x88]
test eax, eax
je 0x42da25
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x78]
mov ebp, dword [esi + 0x74]
shl eax, 1
sub ecx, eax
mov eax, dword [esi + 0x7c]
imul eax, ecx
sub edi, ebp
inc edi
xor edx, edx
div edi
cmp eax, 6
jge 0x42d79e
mov eax, 6
cmp ecx, 6
jge 0x42d7a5
xor eax, eax
sub ecx, eax
mov edi, ecx
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
je 0x42d7c3
mov ecx, dword [esp + 0x88]
mov eax, dword [esi + 0x90]
jmp 0x42d7d0
mov ecx, dword [esp + 0x84]
mov eax, dword [esi + 0x8c]
sub ecx, eax
test edi, edi
jne 0x42d7da
xor eax, eax
jmp 0x42d7ee
mov eax, dword [esi + 0x78]
mov ebp, dword [esi + 0x74]
mov ebx, dword [esi + 0x7c]
sub eax, ebp
sub eax, ebx
inc eax
imul eax, ecx
cdq
idiv edi
mov edi, dword [esi + 0x94]
add edi, eax
mov eax, dword [esi + 0x74]
cmp edi, eax
jl 0x42d80e
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
sub ecx, eax
sub ecx, edx
lea eax, [ecx + 1]
cmp edi, eax
jle 0x42d810
mov edi, eax
cmp edi, dword [esi + 0x84]
je 0x42dcae
mov edx, dword [esi + 0x20]
push edx
call dword [0x43cbf0]
push eax
call sub.MFC71.DLL_CDC::FromHandle
lea ecx, [esp + 0x20]
mov ebp, eax
call sub.MFC71.DLL_CDC::CDC
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x78], ebx
jne 0x42d845
xor eax, eax
jmp 0x42d848
mov eax, dword [ebp + 4]
push eax
call dword [0x43c080]
push eax
lea ecx, [esp + 0x24]
call sub.MFC71.DLL_CDC::Attach
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [0x43c07c]
push 5
lea edx, [esp + 0x44]
push edx
mov ecx, esi
mov dword [esp + 0x88], eax
call fcn.0042c710
push 5
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov dword [esi + 0x84], edi
call fcn.0042c710
mov ecx, esi
mov edi, 3
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
jne 0x42d8a6
mov edi, 7
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, edi
lea edx, [edi + 1]
imul edx, eax
mov dword [esp + 0x50], ecx
mov ecx, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov edi, 2
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
jne 0x42d8d9
mov edi, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, edi
lea edx, [edi + 1]
imul edx, eax
lea ebx, [eax + eax]
lea eax, [eax + eax*2]
mov dword [esp + 0x60], ecx
mov ecx, esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
mov ecx, dword [esi + 0x58]
je 0x42d93f
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x10], 0
jle 0x42d935
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jmp 0x42d971
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jmp 0x42d971
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x14], 0
jle 0x42d969
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jmp 0x42d971
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov ecx, esi
call fcn.0042c850
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push ebp
mov ecx, esi
call fcn.0042c910
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [0x43c07c]
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [0x43cbec]
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetStyle
mov edx, dword [esi + 0x20]
push edx
mov edi, eax
call dword [0x43cb24]
push eax
call sub.MFC71.DLL_CWnd::FromHandle
movzx ecx, word [esi + 0x84]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0x20]
shl ecx, 0x10
push edx
or ecx, 5
push ecx
and edi, 1
or edi, 0x114
push edi
push eax
call dword [0x43cb90]
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call fcn.00430b9c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc
mov eax, dword [esi + 0x98]
cmp eax, 0xffffffff
je 0x42daab
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.0042c710
push eax
lea edx, [esp + 0x64]
push edx
call dword [0x43cb64]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
call dword [0x43cb08]
mov ecx, dword [esi + 0x98]
neg eax
sbb eax, eax
inc eax
test ecx, ecx
mov dword [esi + 0xa4], eax
je 0x42da82
cmp ecx, 1
jne 0x42dcae
xor edx, edx
test eax, eax
setne dl
dec edx
and edx, 2
push edx
push ecx
mov ecx, esi
call fcn.0042cb10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push eax
push ecx
mov ecx, esi
call fcn.0042c430
mov edi, eax
mov eax, dword [esi + 0xa0]
cmp edi, eax
mov dword [esp + 0x80], edi
je 0x42dcae
cmp eax, 0xffffffff
mov ebx, dword [0x43c07c]
je 0x42dbc5
cmp eax, 5
jne 0x42dbb2
mov ecx, esi
call fcn.00407480
lea ecx, [esp + 0x30]
mov edi, eax
call sub.MFC71.DLL_CDC::CDC
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x7c], 1
call fcn.00401830
mov edx, dword [esi + 0x54]
mov eax, dword [esp + 0x34]
push edx
push eax
call ebx
push 5
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov dword [esp + 0x8c], eax
call fcn.0042c710
mov ecx, esi
mov ebp, 2
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
jne 0x42db4a
mov ebp, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, ebp
lea edx, [ebp + 1]
imul edx, eax
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x68], edx
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
mov ecx, esi
call fcn.0042c910
push edi
mov ecx, esi
call fcn.004074a0
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x34]
push edx
push eax
call ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0xffffffff
call fcn.00430b9c
mov edi, dword [esp + 0x80]
jmp 0x42dbc5
test eax, eax
je 0x42dbbb
cmp eax, 1
jne 0x42dbc5
push 0
push eax
mov ecx, esi
call fcn.0042cb10
cmp edi, 0xffffffff
je 0x42dca8
cmp edi, 5
jne 0x42dc95
mov ecx, esi
call fcn.00407480
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC71.DLL_CDC::CDC
mov ebp, 2
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], ebp
call fcn.00401830
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
mov dword [esp + 0x84], eax
push 5
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0042c710
mov ecx, esi
call sub.MFC71.DLL_CWnd::GetStyle
test al, 1
jne 0x42dc2c
mov ebp, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, ebp
lea edx, [ebp + 1]
imul edx, eax
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x6c], edx
lea ebp, [eax + eax]
lea edx, [esp + 0x14]
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x48]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.0042c910
push edi
mov ecx, esi
call fcn.004074a0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], 0xffffffff
call fcn.00430b9c
mov edi, dword [esp + 0x80]
jmp 0x42dca8
test edi, edi
je 0x42dc9e
cmp edi, 1
jne 0x42dca8
push 1
push edi
mov ecx, esi
call fcn.0042cb10
mov dword [esi + 0xa0], edi
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc