Function at 0x40bbc0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e46a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
call fcn.004178f0
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x5c]
push eax
call fcn.004e2538
mov ecx, dword [edi + 0x20]
xor ebx, ebx
lea eax, [esp + 0x5c]
push ebx
mov edx, dword [ecx]
push eax
mov dword [esp + 0x80], ebx
call dword [edx + 0xe4]
mov eax, dword [esp + 0x84]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
je 0x40bda0
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x214]
cmp ecx, ebx
je 0x40bd90
jle 0x40bd54
mov ecx, dword [eax + 0x210]
lea eax, [esp + 0x1c]
lea edx, [ecx + ebx*8]
lea ecx, [esp + 0x24]
push edx
push eax
call fcn.00417900
mov al, byte [esp + 0x24]
cmp al, 1
jne 0x40bd10
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x26]
and edx, 0xffff
mov eax, dword [ecx + 0x40]
mov eax, dword [eax + 0xe4]
mov ecx, dword [eax + edx*4]
mov ax, word [ecx + 4]
cmp ax, 1
jne 0x40bc95
push 1
lea edx, [esp + 0x40]
jmp 0x40bca1
cmp ax, 4
jne 0x40bcc6
push 1
lea edx, [esp + 0x50]
push edx
call fcn.0045c9d0
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov esi, dword [ecx + 8]
mov dword [esp + 0x34], esi
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x38], ecx
jmp 0x40bcd6
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
test ebx, ebx
jne 0x40bcea
mov ebp, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
jmp 0x40bd42
cmp ebp, eax
jle 0x40bcf0
mov ebp, eax
cmp dword [esp + 0x10], ecx
jge 0x40bcfa
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], edx
jle 0x40bd04
mov dword [esp + 0x14], edx
cmp dword [esp + 0x18], esi
jge 0x40bd42
mov dword [esp + 0x18], esi
jmp 0x40bd42
cmp al, 0x16
jne 0x40bd42
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x40]
mov esi, dword [eax + 0x108]
mov ecx, dword [eax + 0xfc]
mov ebp, dword [eax + 0x100]
mov edx, dword [eax + 0x104]
mov dword [esp + 0x14], ecx
add esi, ebp
add ecx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x20]
inc ebx
cmp ebx, dword [eax + 0x214]
jl 0x40bc46
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], ebp
cmp eax, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
je 0x40beab
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x2c]
push 2
push eax
push ecx
jmp 0x40bea5
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x40beab
mov eax, dword [edi + 0x20]
mov dword [esp + 0x84], ebx
mov eax, dword [eax + 0x40]
cmp dword [eax + 0xe8], ebx
jle 0x40be72
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0xe4]
mov eax, dword [esp + 0x84]
mov ecx, dword [ecx + eax*4]
mov ax, word [ecx + 4]
cmp ax, 1
jne 0x40bdec
lea edx, [esp + 0x4c]
push 1
push edx
jmp 0x40bdf9
cmp ax, 4
jne 0x40be19
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.0045c9d0
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov esi, dword [eax + 4]
mov dword [esp + 0x30], esi
mov edi, dword [eax + 8]
mov dword [esp + 0x34], edi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x84]
test ecx, ecx
jne 0x40be30
mov ebp, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
jmp 0x40be50
cmp ebp, esi
jle 0x40be36
mov ebp, esi
cmp dword [esp + 0x10], ebx
jge 0x40be40
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], edx
jle 0x40be4a
mov dword [esp + 0x14], edx
cmp dword [esp + 0x18], edi
jge 0x40be54
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x84], ecx
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x40]
cmp ecx, dword [eax + 0xe8]
jl 0x40bdc9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], ebp
test eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edx
je 0x40beab
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x2c]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov esi, dword [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, esi
mov dword [esp + 0x78], 0xffffffff
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x5c]
mov dword [eax + 0xc], edx
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 0xc