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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
cmp dword [0x54aed0], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x4103a0
push 0
push 0
push 0xb
call fcn.004c2570
push 0
push 2
push 0
mov ecx, edi
call fcn.004c2570
mov eax, dword [edi + 0x1d0]
mov ecx, dword [edi + 0x20]
push 0
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
mov dword [edi + 0x1c4], esi
mov edx, dword [esi + 0x18]
push edx
call fcn.004c1ccb
mov ebx, eax
add esi, 0x1c
push esi
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x28]
push ecx
push edx
lea ecx, [edi + 0x5c]
call fcn.0040f430
mov eax, dword [edi + 0x60]
xor ecx, ecx
test eax, eax
setne cl
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x410428
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
test ebx, ebx
jne 0x41040b
xor esi, esi
jmp 0x41040e
mov esi, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push esi
push ecx
push edx
mov edx, dword [eax + 4]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x1c], 0
je 0x410434
mov esi, dword [edi + 0x60]
jmp 0x410436
mov esi, ebx
xor ebx, ebx
push ebx
push esi
lea eax, [edi + 0x54]
push edi
push eax
call fcn.00412320
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
test al, 4
mov dword [esp + 0x10], ebx
lea ecx, [ebx + 3]
je 0x41045f
mov dword [esp + 0x10], 1
jmp case.default.0x41047d
test al, 1
je 0x410469
mov dword [esp + 0x10], ecx
jmp case.default.0x41047d
cmp dword [edi + 0x1a4], ebx
je case.default.0x41047d
mov dword [esp + 0x10], 2
mov edx, dword [esp + 0x10]
jmp dword [edx*4 + 0x41066c]
cmp dword [edi + 0x1d0], ebx
mov dword [esp + 0x14], ebx
je 0x410498
mov dword [esp + 0x14], 4
mov ecx, edi
call fcn.004c2556
mov ebx, eax
shr ebx, 0x16
and ebx, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0xffffffff
je 0x4104cb
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004c189d
movzx eax, word [edi + 0x80]
test al, 1
je 0x410505
test ebx, ebx
je 0x410500
shr eax, 3
and eax, 1
add eax, eax
add eax, eax
jmp 0x410502
mov dword [esp + 0x14], 1
jmp 0x410498
mov dword [esp + 0x14], ecx
jmp 0x410498
mov dword [esp + 0x14], 2
jmp 0x410498
xor eax, eax
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x54]
mov edx, dword [eax + 0x10]
lea ecx, [edi + 0x54]
push esi
push edi
call edx
test byte [edi + 0x80], 2
je 0x41053b
test ebx, ebx
je 0x41053b
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x41053b
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0
mov ecx, esi
call fcn.004c189d
sub esp, 0x10
mov eax, esp
or ecx, 0xffffffff
mov dword [eax], ecx
or edx, ecx
or ebx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x20]
or ecx, ecx
mov dword [eax + 0xc], ecx
xor eax, eax
push eax
push eax
push esi
lea eax, [edi + 0x54]
push eax
xor ecx, ecx
xor eax, eax
call fcn.00412bd0
sub esp, 0x10
mov eax, esp
or ecx, 0xffffffff
or edx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
or ebx, ecx
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x20]
or ecx, ecx
mov dword [eax + 0xc], ecx
xor eax, eax
xor edx, edx
cmp dword [edi + 0x1d0], edx
push eax
setne dl
push eax
push esi
lea eax, [edi + 0x54]
push eax
xor ecx, ecx
add edx, 1
mov eax, edx
call fcn.00412bd0
test byte [edi + 0x80], 2
je 0x4105cd
cmp dword [esp + 0x20], 0
je 0x4105cd
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004c189d
cmp dword [edi + 0x1d8], 0
je 0x4105df
cmp dword [edi + 0x1d0], 0
je 0x4105f1
xor ecx, ecx
push ecx
xor eax, eax
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040fd80
mov edx, dword [edi + 0x54]
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x54]
push esi
push edi
call eax
cmp dword [esp + 0x1c], 0
je 0x41063d
mov edi, dword [edi + 0x60]
test edi, edi
je 0x41063d
mov eax, dword [esp + 0x34]
mov edx, dword [edi + 4]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x20], 0
je 0x410660
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x410660
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
push 0
mov ecx, esi
call fcn.004c189d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4