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

Disassembly:
push 0xffffffffffffffff
push 0x4a2d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x438a4a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc
mov eax, dword [esp + 0x68]
push ebx
push ebp
push edi
or edi, 0xffffffff
cmp eax, edi
je 0x438a5e
cmp dword [esp + 0x78], edi
je 0x438aa3
lea ecx, [esp + 0x28]
call fcn.0047c961
push 0
mov dword [esp + 0x6c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x2c]
call fcn.0047ce08
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x48]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x438aaa
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], edi
call fcn.0047ce86
xor eax, eax
jmp 0x438c4f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x438a96
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x438a96
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push ecx
mov esi, eax
push eax
mov eax, dword [esp + 0x34]
mov ebp, ecx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x438b14
push ebx
lea ecx, [esp + 0x2c]
call fcn.00422ea0
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
call fcn.0047ce86
xor eax, eax
jmp 0x438c4f
lea ecx, [esp + 0x38]
call fcn.0047c961
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 1
call fcn.00405204
push edi
lea ecx, [esp + 0x3c]
call fcn.00422ea0
test eax, eax
mov dword [esp + 0x20], eax
jne 0x438b63
push ebx
lea ecx, [esp + 0x2c]
call fcn.00422ea0
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 0
call fcn.0047ce86
jmp 0x438afc
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x34]
push edx
push ebp
push esi
push 0
push 0
lea ecx, [esp + 0x58]
call fcn.0040daea
xor ebp, ebp
test esi, esi
jle 0x438c00
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
lea esp, [esp]
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x438bf3
lea ebx, [ebx]
mov eax, dword [esp + 0x3c]
push esi
push ebp
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov edi, eax
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x438bca
cmp edi, eax
jne 0x438be6
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
push ecx
push esi
push ebp
push edx
jmp 0x438be4
mov eax, dword [esp + 0x70]
push eax
push edi
call fcn.00438390
add esp, 8
cmp edi, eax
je 0x438be6
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ebp
push ecx
call ebx
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x438ba0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x438b90
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
call esi
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x38]
mov dword [esi + 0x14], edi
mov byte [esp + 0x68], 0
call fcn.0047ce86
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], 0xffffffff
call fcn.0047ce86
mov eax, 1
mov ecx, dword [esp + 0x60]
pop edi
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc