Function at 0x45d730
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 0x45d74c
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d756
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 0x45d773
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d777
xor eax, eax
jmp 0x45d7a3
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 0x45d7df
mov ecx, esi
call fcn.0041e360
mov ecx, dword [esp + 0x84]
sub ecx, eax
mov eax, ecx
cdq
idiv ebx
inc eax
mov dword [esp + 0x10], eax
jns 0x45d7df
mov dword [esp + 0x10], 0
test esi, esi
je 0x45d7ea
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d7ee
xor ebx, ebx
jmp 0x45d81a
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.00463a30
add edi, dword [ebp + 0x26c]
test esi, esi
je 0x45d862
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d866
xor ebx, ebx
jmp 0x45d892
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 0x45d89d
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d8a1
xor eax, eax
jmp 0x45d8cd
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 0x45d950
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
sub ebx, ebp
sub ebx, ecx
inc eax
mov dword [esp + 0x10], eax
jmp 0x45d910
lea eax, [ebx + edi]
test eax, eax
jle 0x45d91b
sub dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x1c]
jle 0x45d93f
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.00463a30
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
add edi, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x45d910
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 0x45d974
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d97e
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
xor ebp, ebp
jmp 0x45d9ac
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 0x45d9b7
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d9bb
xor edi, edi
jmp 0x45d9e3
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 0x45d9ee
mov eax, dword [esi + 4]
test eax, eax
jne 0x45d9f2
xor eax, eax
jmp 0x45da1a
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.00463a30
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x64
ret 0x10