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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
push edi
je 0x52d0f4
push eax
call fcn.0057832c
add esp, 4
mov dword [esi], 0
lea ebx, [esi + 4]
mov eax, ebx
mov dword [esp + 0x1c], ebx
xor edi, edi
call fcn.00548180
test eax, eax
jle 0x52d1ba
lea esp, [esp]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x52d123
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d128
call fcn.00578ff3
mov ecx, dword [ebx + 4]
cmp dword [ecx + edi*4], 0
je 0x52d1a8
test ecx, ecx
je 0x52d141
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d146
call fcn.00578ff3
mov eax, dword [ebx + 4]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x52d183
mov eax, dword [esi + 8]
test eax, eax
je 0x52d165
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52d17a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
push esi
call fcn.00578327
add esp, 4
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x52d196
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d19b
call fcn.00578ff3
mov ecx, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [ecx + edi*4], 0
mov eax, ebx
add edi, 1
call fcn.00548180
cmp edi, eax
jl 0x52d110
mov eax, ebx
call fcn.0052a9c0
add esi, 0x64
mov eax, esi
xor edi, edi
call fcn.00548180
test eax, eax
jle 0x52d27c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x52d1e8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d1ed
call fcn.00578ff3
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*4], 0
je 0x52d26a
test ecx, ecx
je 0x52d206
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d20b
call fcn.00578ff3
mov edx, dword [esi + 4]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x52d248
mov eax, dword [ebx + 8]
test eax, eax
je 0x52d22a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52d23f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xc], 0
push ebx
call fcn.00578327
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x52d25b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x52d260
call fcn.00578ff3
mov eax, dword [esi + 4]
mov dword [eax + edi*4], 0
mov eax, esi
add edi, 1
call fcn.00548180
cmp edi, eax
jl 0x52d1d5
mov eax, esi
call fcn.0052a9c0
mov edi, dword [ebp + 8]
mov dword [edi + 0x74], 0xff00ff
mov ebx, dword [edi + 0x80]
add edi, 0x78
cmp dword [edi + 4], ebx
jbe 0x52d2a0
call fcn.00578ff3
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x10], eax
jbe 0x52d2b5
call fcn.00578ff3
mov eax, dword [esp + 0x10]
push ebx
push edi
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
mov ebx, edi
call fcn.00444f70
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x90]
add ebx, 0x88
cmp dword [ebx + 4], eax
mov dword [esp + 0x14], eax
jbe 0x52d2e2
call fcn.00578ff3
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
jbe 0x52d2f7
call fcn.00578ff3
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
push ebx
push eax
push ebx
lea eax, [esp + 0x24]
push eax
call fcn.00444f70
fldz
mov eax, dword [ebp + 8]
fst qword [eax + 0x98]
fst qword [eax + 0xa0]
fstp qword [eax + 0xa8]
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, eax
je 0x52d334
push ecx
call fcn.00578327
add esp, 4
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 4]
cmp ecx, eax
je 0x52d34f
push ecx
call fcn.00578327
add esp, 4
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 4]
cmp ecx, eax
je 0x52d36a
push ecx
call fcn.00578327
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [ebp + 8]
add esi, 0x3c
call fcn.0052c3d0
mov esi, dword [ebp + 8]
add esi, 0x14
call fcn.0052c3d0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x52d39f
push eax
call fcn.00578327
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4