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

Disassembly:
sub esp, 0x864
push ebx
push ebp
push esi
lea eax, [esp + 0x48]
push edi
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.100d3780
lea edx, [esp + 0x34]
mov eax, dword [esp + 0x87c]
mov ecx, dword [esp + 0x878]
push edx
push eax
push ecx
call sym.GEAR32PO.OCX_GPb_IP_check_rect_for_NULL_and_clip
mov ebp, dword [esp + 0x880]
mov edi, dword [esp + 0x884]
mov eax, ebp
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sar ecx, 1
sub eax, edx
mov edx, ecx
sar eax, 1
neg edx
mov esi, eax
mov dword [esp + 0x44], edx
neg esi
lea edx, [edx + ebp - 1]
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], edx
lea edx, [esi + edi - 1]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
add edx, ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x40]
sub edx, ebp
add ecx, eax
inc edx
sub ecx, edi
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x54]
inc ecx
push edx
mov dword [esp + 0x64], ecx
call fcn.100c4d40
test eax, eax
jne 0x10052f4f
push 1
push eax
push 0xfffff308
push 0x515
jmp 0x100530e4
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.100c4d70
lea edx, [esp + 0x34]
push edx
call sym.GEAR32PO.OCX_rect_number_of_segments
mov ebx, eax
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x38], ebx
call sym.GEAR32PO.OCX_rect_segment_get
mov ecx, dword [esp + 0x888]
mov eax, dword [esp + 0x18]
sub ebp, ecx
mov ecx, edi
mov edi, dword [esp + 0x88c]
mov edx, eax
sub edx, esi
sub ecx, edi
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ecx
jge 0x10052fad
mov ebp, 1
cmp ecx, 1
jge 0x10052fba
mov dword [esp + 0x28], 1
xor esi, esi
test ebx, ebx
mov dword [esp + 0x10], esi
jle 0x100530ee
mov ecx, dword [esp + 0x1c]
jmp 0x10052fd2
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov edi, ecx
add ebx, ecx
cmp ecx, ebx
jge 0x10053076
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
lea esi, [edx + ecx]
mov ecx, edx
sub ebx, ecx
mov edx, dword [esp + 0x48]
lea ecx, [ebx + esi]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x30]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x880]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x884]
mov dword [esp + 0x70], ecx
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x47c]
push ecx
push edx
mov dword [esp + 0x7c], esi
call fcn.10053100
lea eax, [esp + 0x74]
lea ecx, [esp + 0x474]
push eax
mov eax, dword [esp + 0x87c]
lea edx, [esp + 0x68]
push ecx
push edx
push eax
call fcn.10001810
add edi, ebp
add esi, ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [ecx + edx]
cmp edi, eax
mov eax, dword [esp + 0x18]
jl 0x10052ff1
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x1005307a
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x1005309f
mov ecx, dword [esp + 0x4c]
push edi
push esi
push ecx
call ebx
test eax, eax
je 0x100530d4
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc eax
inc esi
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
je 0x100530bb
mov ebx, dword [esp + 0x28]
add ebx, edx
cmp eax, ebx
je 0x100530bb
cmp esi, edi
jl 0x1005307a
cmp esi, edi
mov dword [esp + 0x14], eax
jl 0x10052fce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret 0x18
mov edx, dword [esp + 0x10]
push edi
push edx
push 0xfffff7bf
push 0x541
push str.C:_accusoftgear_sourceIMG_PROCFX.C
call fcn.10046940
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x864
ret 0x18