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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test esi, esi
je 0x40a83b
test eax, eax
je 0x40a83b
mov ecx, dword [edi + 8]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x5c]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
cmp esi, dword [ebx + 0x10]
jbe 0x40a64e
call fcn.00425fb3
mov ecx, dword [ebx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
lea ebp, [esi + 0x58]
jmp 0x40a660
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x40a671
call fcn.00425fb3
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx]
test ecx, ecx
je 0x40a67b
cmp ecx, eax
je 0x40a684
call fcn.00425fb3
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], edi
je 0x40a81d
test ecx, ecx
jne 0x40a6cb
call fcn.00425fb3
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x40a6a7
call fcn.00425fb3
cmp dword [ebp + 0x10], 0
jne 0x40a6b7
mov eax, dword [esp + 0x24]
push eax
call fcn.0040a1e0
mov esi, dword [esp + 0x24]
call fcn.0040a170
cmp dword [ebp + 0x14], 8
jb 0x40a6cf
mov eax, dword [ebp]
jmp 0x40a6d1
mov eax, dword [ecx]
jmp 0x40a699
mov eax, ebp
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x40a7e1
lea ecx, [esp + 0x38]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x40a735
call fcn.00425fb3
xor eax, eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x40a723
call fcn.00425fb3
mov eax, dword [ebp + 0x24]
sub eax, 0
je 0x40a746
sub eax, 2
je 0x40a739
mov edi, dword [ebp + 0x20]
jmp 0x40a75e
mov eax, dword [esi]
jmp 0x40a715
mov edi, dword [esp + 0x14]
sub edi, dword [ebp + 0x20]
sub edi, dword [esp + 0x40]
jmp 0x40a75e
mov eax, dword [esp + 0x40]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
mov edi, eax
sar ecx, 1
sar edi, 1
sub edi, ecx
test esi, esi
jne 0x40a78d
call fcn.00425fb3
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x40a777
call fcn.00425fb3
mov eax, dword [ebp + 0x28]
sub eax, 0
mov ecx, dword [esp + 0x3c]
je 0x40a79c
sub eax, 2
je 0x40a791
mov eax, dword [ebp + 0x1c]
jmp 0x40a7b4
mov eax, dword [esi]
jmp 0x40a769
mov eax, dword [esp + 0x18]
sub eax, dword [ebp + 0x1c]
sub eax, ecx
jmp 0x40a7b4
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub eax, esi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x50]
push edx
push ecx
push edi
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40a7e5
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x40a819
call fcn.00425fb3
xor eax, eax
mov edx, dword [esp + 0x24]
cmp edx, dword [eax + 0x10]
jb 0x40a7fe
call fcn.00425fb3
add dword [esp + 0x24], 0x84
mov ebx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
add ebp, 0x84
jmp 0x40a660
mov eax, dword [esi]
jmp 0x40a7f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8