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

Disassembly:
sub esp, 0x64
push ebp
mov ebp, ecx
push esi
lea esi, [ebp + 0x244]
test esi, esi
mov dword [esp + 0x10], ebp
je 0x45f6ec
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f6f6
pop esi
xor eax, eax
pop ebp
add esp, 0x64
ret 0x10
test esi, esi
push ebx
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
je 0x45f713
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f717
xor eax, eax
jmp 0x45f743
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x3c], ecx
push 0x18
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x270]
mov ecx, dword [ebp + 0x26c]
sub eax, edx
sub eax, ecx
mov ebx, eax
mov dword [esp + 0x7c], ebx
je 0x45f77f
mov ecx, esi
call fcn.0041f570
mov ecx, dword [esp + 0x84]
sub ecx, eax
mov eax, ecx
cdq
idiv ebx
inc eax
mov dword [esp + 0x10], eax
jns 0x45f77f
mov dword [esp + 0x10], 0
test esi, esi
je 0x45f78a
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f78e
xor ebx, ebx
jmp 0x45f7ba
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], edx
push 0x18
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x4c], edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0x34]
mov edx, dword [ebp + 0x26c]
xor eax, eax
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
push eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.00465990
add edi, dword [ebp + 0x26c]
test esi, esi
je 0x45f802
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f806
xor ebx, ebx
jmp 0x45f832
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], edx
push 0x18
mov dword [esp + 0x44], edx
push eax
mov dword [esp + 0x4c], edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ebx, dword [esp + 0x34]
test esi, esi
je 0x45f83d
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f841
xor eax, eax
jmp 0x45f86d
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x54], edx
push 0x18
mov dword [esp + 0x5c], edx
push eax
mov dword [esp + 0x64], edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x48]
sub eax, dword [ebp + 0x270]
mov ecx, dword [ebp + 0x26c]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ebx
jl 0x45f8f0
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
sub ebx, ebp
sub ebx, ecx
inc eax
mov dword [esp + 0x10], eax
jmp 0x45f8b0
lea eax, [ebx + edi]
test eax, eax
jle 0x45f8bb
sub dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x1c]
jle 0x45f8df
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push edx
mov ecx, esi
call fcn.00465990
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
add edi, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x45f8b0
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x270]
mov ecx, dword [esp + 0x84]
sub ebp, edx
add ebp, ecx
test esi, esi
mov dword [esp + 0x7c], ebp
je 0x45f914
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f91e
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
xor ebp, ebp
jmp 0x45f94c
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x54], ecx
push 0x18
mov dword [esp + 0x5c], ecx
push eax
mov dword [esp + 0x64], ecx
call ebx
mov ebp, dword [esp + 0x4c]
test esi, esi
je 0x45f957
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f95b
xor edi, edi
jmp 0x45f983
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x3c], ecx
push 0x18
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], ecx
call ebx
mov edi, dword [esp + 0x30]
test esi, esi
je 0x45f98e
mov eax, dword [esi + 4]
test eax, eax
jne 0x45f992
xor eax, eax
jmp 0x45f9ba
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x6c], ecx
push 0x18
mov dword [esp + 0x74], ecx
push eax
mov dword [esp + 0x7c], ecx
call ebx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + 0x270]
xor ecx, ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x80]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
call fcn.00465990
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x64
ret 0x10