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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp]
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.0052d8e0
add edi, 4
mov eax, edi
xor ebx, ebx
call fcn.00548180
test eax, eax
jle 0x52d493
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x52d3ff
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d404
call fcn.00578ff3
mov ecx, dword [edi + 4]
cmp dword [ecx + ebx*4], 0
je 0x52d481
test ecx, ecx
je 0x52d41d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d422
call fcn.00578ff3
mov eax, dword [edi + 4]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x52d45f
mov eax, dword [esi + 8]
test eax, eax
je 0x52d441
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52d456
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 [edi + 4]
test ecx, ecx
je 0x52d472
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d477
call fcn.00578ff3
mov ecx, dword [edi + 4]
mov dword [ecx + ebx*4], 0
mov eax, edi
add ebx, 1
call fcn.00548180
cmp ebx, eax
jl 0x52d3ec
mov eax, edi
call fcn.0052a9c0
xor ebx, ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esp + 0x14], ebx
jne 0x52d4ab
xor eax, eax
jmp 0x52d4b3
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x52d5be
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x52d4d3
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d4d8
call fcn.00578ff3
mov edx, dword [ebp + 8]
cmp dword [edx + ebx*4], 0
je 0x52d55d
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x52d501
xor ebx, ebx
mov dword [eax], ebx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov esi, eax
jmp 0x52d505
xor esi, esi
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp ecx, ebx
mov dword [esp + 0x10], esi
je 0x52d51e
mov eax, dword [ebp + 0xc]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x52d523
call fcn.00578ff3
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi], edx
mov byte [esi + 4], cl
je 0x52d548
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x52d559
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 4]
test edx, edx
jne 0x52d568
xor ecx, ecx
jmp 0x52d570
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x52d597
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x52d597
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [edi + 8], eax
add ebx, 1
jmp 0x52d49c
mov esi, dword [edi + 8]
cmp edx, esi
jbe 0x52d5a3
call fcn.00578ff3
push esi
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.0045a4c0
add ebx, 1
jmp 0x52d49c
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov edi, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
push eax
mov eax, dword [ebp + 0x14]
push ecx
lea esi, [edi + 0x14]
call fcn.0052c6a0
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x50]
push edx
mov edx, dword [ebp + 0x4c]
push eax
mov eax, dword [ebp + 0x48]
push ecx
mov ecx, dword [ebp + 0x44]
push edx
mov edx, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
push edx
lea esi, [edi + 0x3c]
call fcn.0052c6a0
add edi, 0x64
mov eax, edi
xor ebx, ebx
call fcn.00548180
test eax, eax
jle 0x52d6cb
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x52d637
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d63c
call fcn.00578ff3
mov ecx, dword [edi + 4]
cmp dword [ecx + ebx*4], 0
je 0x52d6b9
test ecx, ecx
je 0x52d655
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d65a
call fcn.00578ff3
mov eax, dword [edi + 4]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x52d697
mov eax, dword [esi + 8]
test eax, eax
je 0x52d679
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x52d68e
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 [edi + 4]
test ecx, ecx
je 0x52d6aa
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d6af
call fcn.00578ff3
mov ecx, dword [edi + 4]
mov dword [ecx + ebx*4], 0
mov eax, edi
add ebx, 1
call fcn.00548180
cmp ebx, eax
jl 0x52d624
mov eax, edi
call fcn.0052a9c0
xor ebx, ebx
mov ecx, dword [ebp + 0x68]
test ecx, ecx
mov dword [esp + 0x14], ebx
jne 0x52d6e3
xor eax, eax
jmp 0x52d6eb
mov eax, dword [ebp + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x52d7f6
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x52d70b
mov eax, dword [ebp + 0x6c]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x52d710
call fcn.00578ff3
mov edx, dword [ebp + 0x68]
cmp dword [edx + ebx*4], 0
je 0x52d795
push 0x10
call fcn.00578e5f
add esp, 4
test eax, eax
je 0x52d739
xor ebx, ebx
mov dword [eax], ebx
mov byte [eax + 4], 0xff
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov esi, eax
jmp 0x52d73d
xor esi, esi
xor ebx, ebx
mov ecx, dword [ebp + 0x68]
cmp ecx, ebx
mov dword [esp + 0x10], esi
je 0x52d756
mov eax, dword [ebp + 0x6c]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x52d75b
call fcn.00578ff3
mov eax, dword [ebp + 0x68]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 8]
cmp eax, ebx
mov dword [esi], edx
mov byte [esi + 4], cl
je 0x52d780
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x52d791
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 4]
test edx, edx
jne 0x52d7a0
xor ecx, ecx
jmp 0x52d7a8
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x52d7cf
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x52d7cf
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [edi + 8], eax
add ebx, 1
jmp 0x52d6d4
mov esi, dword [edi + 8]
cmp edx, esi
jbe 0x52d7db
call fcn.00578ff3
push esi
push edi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, edi
call fcn.0045a4c0
add ebx, 1
jmp 0x52d6d4
mov ecx, dword [ebp + 0x74]
mov esi, dword [esp + 0x28]
mov dword [esi + 0x74], ecx
add esi, 0x78
mov eax, esi
lea edi, [ebp + 0x78]
call fcn.00444740
mov eax, edi
xor ebp, ebp
call fcn.00548180
test eax, eax
jle 0x52d84b
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x52d82d
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x52d832
call fcn.00578ff3
mov edx, dword [edi + 4]
lea ebx, [edx + ebp*4]
call fcn.004446c0
mov eax, edi
add ebp, 1
call fcn.00548180
cmp ebp, eax
jl 0x52d81a
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add esi, 0x88
mov eax, esi
add edi, 0x88
call fcn.00444740
mov eax, edi
xor ebp, ebp
call fcn.00548180
test eax, eax
jle 0x52d8a4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x52d886
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x52d88b
call fcn.00578ff3
mov eax, dword [edi + 4]
lea ebx, [eax + ebp*4]
call fcn.004446c0
mov eax, edi
add ebp, 1
call fcn.00548180
cmp ebp, eax
jl 0x52d873
mov ecx, dword [esp + 0x2c]
fld qword [ecx + 0x98]
mov eax, dword [esp + 0x28]
fstp qword [eax + 0x98]
pop edi
fld qword [ecx + 0xa0]
pop esi
fstp qword [eax + 0xa0]
pop ebp
fld qword [ecx + 0xa8]
pop ebx
fstp qword [eax + 0xa8]
add esp, 0x14
ret 8