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

Disassembly:
sub esp, 0x64
push ebp
mov ebp, ecx
push esi
lea esi, [ebp + 0x254]
test esi, esi
mov dword [esp + 0x10], ebp
je 0x46005c
mov eax, dword [esi + 4]
test eax, eax
jne 0x460066
pop esi
xor eax, eax
pop ebp
add esp, 0x64
ret 0x10
test esi, esi
push ebx
mov ebx, dword [esp + 0x7c]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x460083
mov eax, dword [esi + 4]
test eax, eax
jne 0x460087
xor eax, eax
jmp 0x4600b3
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 + 0x34]
mov edx, dword [ebp + 0x288]
mov ecx, dword [ebp + 0x284]
sub eax, edx
sub eax, ecx
mov edi, eax
test edi, edi
mov dword [esp + 0x80], edi
jle 0x4600f4
mov ecx, esi
call fcn.0041f5c0
mov ecx, dword [esp + 0x84]
sub ecx, eax
mov eax, ecx
cdq
idiv edi
inc eax
mov dword [esp + 0x10], eax
jns 0x4600f4
mov dword [esp + 0x10], 0
test esi, esi
je 0x4600ff
mov eax, dword [esi + 4]
test eax, eax
jne 0x460103
xor edi, edi
jmp 0x46012f
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 edi, dword [esp + 0x30]
mov edx, dword [ebp + 0x284]
mov dword [esp + 0x28], edx
xor eax, eax
lea edx, [esp + 0x1c]
push edx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
push ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], edi
call fcn.00465990
add ebx, dword [ebp + 0x284]
test esi, esi
je 0x460177
mov eax, dword [esi + 4]
test eax, eax
jne 0x46017b
xor edi, edi
jmp 0x4601a7
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 edi, dword [esp + 0x34]
test esi, esi
je 0x4601b2
mov eax, dword [esi + 4]
test eax, eax
jne 0x4601b6
xor edx, edx
jmp 0x4601e2
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 edx, dword [esp + 0x48]
sub edi, dword [ebp + 0x288]
mov ecx, dword [ebp + 0x284]
mov ebp, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
jl 0x460263
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
sub edi, ebp
sub edi, ecx
inc eax
mov dword [esp + 0x10], eax
lea eax, [edi + ebx]
test eax, eax
jle 0x46022e
sub dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x20]
jle 0x46024f
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
push ebx
push ecx
push edx
mov ecx, esi
call fcn.00465990
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x10]
add ebx, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x460223
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x288]
mov ecx, dword [esp + 0x84]
sub ebp, edx
add ebp, ecx
test esi, esi
mov dword [esp + 0x80], ebp
je 0x46028a
mov eax, dword [esi + 4]
test eax, eax
jne 0x460294
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
xor ebp, ebp
jmp 0x4602c2
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 0x4602cd
mov eax, dword [esi + 4]
test eax, eax
jne 0x4602d1
xor edi, edi
jmp 0x4602f9
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 0x460304
mov eax, dword [esi + 4]
test eax, eax
jne 0x460308
xor eax, eax
jmp 0x460330
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 + 0x64]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx + 0x288]
mov edx, dword [esp + 0x7c]
sub eax, ebx
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
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