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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x28]
mov ecx, edi
call fcn.00494590
test eax, eax
je 0x404c7c
mov esi, dword [esp + 0x44]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, edi
call fcn.00494650
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, ebp
push 1
push 0
push 0
mov ecx, dword [eax]
push 0
mov dword [esp + 0x30], ecx
push 0
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x3c], ecx
push 0
mov edx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, ebp
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x3c]
lea ecx, [ecx + edx - 0x78]
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
push esi
mov ecx, edi
call fcn.00493ba0
mov eax, dword [ebx + 0x1418]
mov edx, dword [esp + 0x44]
push 1
push 0
lea ecx, [eax + 0x78]
push ecx
mov ecx, dword [edx + 4]
sub ecx, eax
push 0
sub ecx, 0x78
lea edx, [esp + 0x40]
push ecx
push 0
push 0
push edx
push esi
mov ecx, edi
call fcn.00493ba0
push 0
call fcn.004f93f0
mov ecx, eax
call fcn.004fa620
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov ecx, ebp
mov dword [esp + 0x48], eax
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x14], 0x37
mov eax, dword [ecx + 8]
sub eax, 0xa
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
push 0
mov dword [esp + 0x20], 0x4f
call fcn.004f93f0
mov ecx, eax
call fcn.004fa620
push eax
push esi
call edi
lea edx, [ebx + 0x8fc]
xor edi, edi
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
cmp word [eax], 0
je 0x404be8
push edi
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, 0x23
mov ecx, esp
push esi
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, ebx
call fcn.00404d70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, 0x1e
add ecx, eax
add edx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
inc edi
add ecx, 0x238
cmp edi, 5
mov dword [esp + 0x14], edx
mov dword [esp + 0x44], ecx
jl 0x404b87
mov edi, dword [ebx + 0x142c]
mov eax, dword [edi - 8]
test eax, eax
jle 0x404c47
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebp
add ebp, 0xffffff85
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
push 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], 0x23
mov dword [esp + 0x1c], ebp
call fcn.004f93f0
mov ecx, eax
call fcn.004fa620
push eax
lea eax, [esp + 0x18]
push 0x824
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.004a1740
add esp, 0x1c
mov ecx, dword [esp + 0x48]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [ebx + 0x1420]
mov eax, dword [ebx + 0x1424]
cmp edi, eax
je 0x404c7c
mov ecx, dword [edi]
test ecx, ecx
je 0x404c6f
push esi
call fcn.004a2160
mov eax, dword [ebx + 0x1424]
add edi, 4
cmp edi, eax
jne 0x404c63
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8