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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
lea eax, [esp + 0x40]
push edi
push eax
xor esi, esi
push 0x18
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], esi
xor edi, edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x1000443d
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x80], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x34], eax
je 0x1000443d
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
sub eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
sub ecx, edx
test eax, eax
mov dword [esp + 0x30], ecx
jl 0x100042ec
test esi, esi
jne 0x100042e1
mov ebx, ebp
sub ebx, dword [esp + 0x64]
add edi, ebx
jmp 0x100042e3
add edi, ebp
inc esi
cmp edi, eax
jle 0x100042d3
mov dword [esp + 0x1c], esi
test ecx, ecx
jl 0x1000431b
mov eax, dword [esp + 0x14]
test eax, eax
mov eax, dword [esp + 0x7c]
jne 0x10004300
sub eax, dword [esp + 0x68]
mov esi, dword [esp + 0x10]
add esi, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc esi
cmp eax, ecx
mov dword [esp + 0x14], esi
jle 0x100042f0
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jle 0x10004432
mov esi, ecx
add edx, ecx
neg esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x68]
mov edi, eax
neg edi
mov ebp, dword [esp + 0x7c]
mov ebx, dword [esp + 0x6c]
sbb edi, edi
not edi
and edi, edx
mov edx, dword [esp + 0x18]
sub edx, edi
add edx, ebp
mov ebp, dword [esp + 0x38]
cmp edx, ebp
jle 0x1000436f
mov edx, dword [esp + 0x20]
jmp 0x10004375
mov edx, dword [esp + 0x7c]
sub edx, edi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
xor ebp, ebp
test edx, edx
jle 0x1000440d
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
add eax, edx
mov dword [esp + 0x3c], eax
jmp 0x1000439b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
mov eax, ebp
neg eax
mov esi, dword [esp + 0x28]
sbb eax, eax
not eax
and eax, edx
mov edx, ebx
sub edx, eax
add edx, esi
mov esi, dword [esp + 0x3c]
cmp edx, esi
jle 0x100043c9
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
sub esi, ebx
add esi, edx
jmp 0x100043cf
mov esi, dword [esp + 0x28]
sub esi, eax
mov edx, dword [esp + 0x2c]
push 0xcc0020
push edx
push esi
push edi
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push esi
push ecx
push ebx
push edx
call fcn.10001090
mov eax, dword [esp + 0x48]
add esp, 0x2c
add ebx, esi
inc ebp
cmp ebp, eax
jl 0x10004397
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add ebp, ecx
add ebx, esi
inc eax
cmp eax, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
jl 0x10004343
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret