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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x78]
mov ebp, eax
mov eax, dword [esi + 0x7c]
xor ebx, ebx
mov dword [esp + 0x40], eax
imul eax, ecx
push ebx
push ebx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea edx, [esp + 0x48]
push edx
shl eax, 2
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], 1
mov word [esp + 0x5e], 0x20
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
xor ecx, ecx
cmp ebp, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], ecx
je 0x4034fc
cmp eax, ebx
je 0x4034fc
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0xec]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x403572
lea esp, [esp]
cmp edi, ebx
jl 0x4037b6
cmp edi, dword [esi + 0xec]
jge 0x4037b6
mov eax, dword [esi + 0xe8]
lea ebp, [edi*4]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.0040bf80
cmp eax, dword [esp + 0x10]
jle 0x403561
cmp edi, dword [esi + 0xec]
jge 0x4037b6
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + ebp]
add eax, ebp
call fcn.0040bf80
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xec]
inc edi
xor ebx, ebx
cmp edi, eax
jl 0x403510
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
test ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
jl 0x403648
lea ecx, [ecx]
mov ecx, dword [esi + 0xec]
xor ebp, ebp
test ecx, ecx
jle 0x40362f
test ebp, ebp
jl 0x4037b6
cmp ebp, dword [esi + 0xec]
jge 0x4037b6
mov eax, dword [esi + 0xe8]
lea edi, [ebp*4]
mov ecx, dword [eax + edi]
add eax, edi
call fcn.0040bf80
cmp eax, dword [esp + 0x1c]
jne 0x40361c
cmp ebp, dword [esi + 0xec]
jge 0x4037b6
mov eax, dword [esi + 0xe8]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edi]
add eax, edi
push edx
call fcn.0040c330
cmp eax, ebx
jle 0x4035f8
mov ebx, eax
test eax, eax
je 0x40361c
cmp ebp, dword [esi + 0xec]
jge 0x4037b6
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + edi]
add eax, edi
call fcn.0040bf90
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xec]
inc ebp
cmp ebp, eax
jl 0x4035a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jle 0x403590
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x43f8b8]
test ecx, ecx
je 0x40373a
cmp eax, 1
je 0x40366e
cmp eax, 4
je 0x40366e
cmp eax, 0xd
je 0x40366e
cmp eax, 0x1b
jne 0x40373a
push ebp
call fcn.004033e0
mov edi, eax
add esp, 4
test edi, edi
je 0x40373a
mov eax, dword [0x43f8b8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ebp, eax
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4036a5
mov dword [ebp + 8], eax
mov eax, dword [0x43f8b8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ebp, eax
mov dword [esp + 0x24], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4036c9
mov dword [ebp + 8], eax
mov eax, dword [0x43f8b8]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x24]
push ecx
push edx
mov ebp, eax
mov dword [esp + 0x2c], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4036ed
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
push ebx
mov ebx, dword [0x43f8b8]
push ebx
mov eax, 0x1f4
sub eax, ecx
sub esp, 0x10
shr eax, 1
mov ebx, esp
mov dword [ebx], eax
mov ecx, 0x128
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
push edi
mov dword [ebx + 0xc], ebp
call fcn.00415f50
mov eax, dword [edi]
add esp, 0x1c
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
call sub.gdiplus.dll_GdipFree
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov edi, dword [esp + 0x2c]
push 2
mov dword [esp + 0x20], ecx
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esi + 0x1c]
push ebp
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
push edx
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0xff
mov byte [esp + 0x3f], 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x403798
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebp, ebp
je 0x4037a3
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
jmp fcn.0042385a