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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [edi]
push ebp
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.005789d0
lea ebx, [esi + 4]
mov eax, ebx
xor ebp, ebp
call fcn.0057a810
test eax, eax
jle 0x57849d
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x578409
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x57840e
call fcn.005d29f1
mov ecx, dword [ebx + 4]
cmp dword [ecx + ebp*4], 0
je 0x57848b
test ecx, ecx
je 0x578427
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x57842c
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x578469
mov eax, dword [esi + 8]
test eax, eax
je 0x57844b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x578460
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
push esi
call fcn.005d2367
add esp, 4
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x57847c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x578481
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov dword [ecx + ebp*4], 0
mov eax, ebx
add ebp, 1
call fcn.0057a810
cmp ebp, eax
jl 0x5783f6
mov eax, ebx
call fcn.004fc8d0
xor ebp, ebp
mov ecx, dword [edi + 8]
test ecx, ecx
mov dword [esp + 0x14], ebp
jne 0x5784b5
xor eax, eax
jmp 0x5784bd
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jge 0x5785c8
test ecx, ecx
mov dword [esp + 0x10], 0
je 0x5784dd
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5784e2
call fcn.005d29f1
mov edx, dword [edi + 8]
cmp dword [edx + ebp*4], 0
je 0x578567
push 0x10
call fcn.005d2776
add esp, 4
test eax, eax
je 0x57850b
xor ebp, ebp
mov dword [eax], ebp
mov byte [eax + 4], 0xff
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov esi, eax
jmp 0x57850f
xor esi, esi
xor ebp, ebp
mov ecx, dword [edi + 8]
cmp ecx, ebp
mov dword [esp + 0x10], esi
je 0x578528
mov eax, dword [edi + 0xc]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x57852d
call fcn.005d29f1
mov eax, dword [edi + 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, ebp
mov dword [esi], edx
mov byte [esi + 4], cl
je 0x578552
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x578563
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [ebx + 4]
test edx, edx
jne 0x578572
xor ecx, ecx
jmp 0x57857a
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x5785a1
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x5785a1
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
mov dword [ebx + 8], eax
add ebp, 1
jmp 0x5784a6
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x5785ad
call fcn.005d29f1
push esi
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.00471c90
add ebp, 1
jmp 0x5784a6
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
mov ecx, dword [edi + 0x24]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x14]
push ecx
lea esi, [ebx + 0x14]
call fcn.00577980
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
lea esi, [ebx + 0x3c]
call fcn.00577980
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
push eax
mov eax, dword [edi + 0x74]
push ecx
mov ecx, dword [edi + 0x70]
push edx
mov edx, dword [edi + 0x6c]
push eax
mov eax, dword [edi + 0x68]
push ecx
push edx
push eax
mov eax, dword [edi + 0x64]
lea esi, [ebx + 0x64]
call fcn.00577980
mov ecx, dword [edi + 0xa8]
mov edx, dword [edi + 0xa4]
mov eax, dword [edi + 0xa0]
push ecx
mov ecx, dword [edi + 0x9c]
push edx
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x94]
push ecx
mov ecx, dword [edi + 0x90]
push edx
push eax
mov eax, dword [edi + 0x8c]
push ecx
lea esi, [ebx + 0x8c]
call fcn.00577980
mov edx, dword [edi + 0xd0]
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc8]
push edx
mov edx, dword [edi + 0xc4]
push eax
mov eax, dword [edi + 0xc0]
push ecx
mov ecx, dword [edi + 0xbc]
push edx
push eax
push ecx
mov edx, dword [edi + 0xb8]
mov eax, dword [edi + 0xb4]
push edx
lea esi, [ebx + 0xb4]
call fcn.00577980
add ebx, 0xdc
mov eax, ebx
xor ebp, ebp
call fcn.0057a810
test eax, eax
jle 0x578787
nop
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x5786f3
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5786f8
call fcn.005d29f1
mov ecx, dword [ebx + 4]
cmp dword [ecx + ebp*4], 0
je 0x578775
test ecx, ecx
je 0x578711
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x578716
call fcn.005d29f1
mov eax, dword [ebx + 4]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x578753
mov eax, dword [esi + 8]
test eax, eax
je 0x578735
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x57874a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
push esi
call fcn.005d2367
add esp, 4
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x578766
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x57876b
call fcn.005d29f1
mov ecx, dword [ebx + 4]
mov dword [ecx + ebp*4], 0
mov eax, ebx
add ebp, 1
call fcn.0057a810
cmp ebp, eax
jl 0x5786e0
mov eax, ebx
call fcn.004fc8d0
xor esi, esi
xor ebp, ebp
mov ecx, dword [edi + 0xe0]
cmp ecx, esi
jne 0x5787a0
xor eax, eax
jmp 0x5787ab
mov eax, dword [edi + 0xe4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jge 0x5788be
cmp ecx, esi
mov dword [esp + 0x10], esi
je 0x5787ca
mov eax, dword [edi + 0xe4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x5787cf
call fcn.005d29f1
mov edx, dword [edi + 0xe0]
cmp dword [edx + ebp*4], esi
je 0x578859
push 0x10
call fcn.005d2776
add esp, 4
cmp eax, esi
je 0x5787fa
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov byte [eax + 4], 0xff
mov esi, eax
mov ecx, dword [edi + 0xe0]
test ecx, ecx
mov dword [esp + 0x10], esi
je 0x578817
mov eax, dword [edi + 0xe4]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x57881c
call fcn.005d29f1
mov eax, dword [edi + 0xe0]
mov eax, dword [eax + ebp*4]
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov eax, dword [esi + 8]
test eax, eax
mov dword [esi], edx
mov byte [esi + 4], cl
je 0x578844
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x578859
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0xc], 0
mov edx, dword [ebx + 4]
test edx, edx
jne 0x578864
xor ecx, ecx
jmp 0x57886c
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x578895
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x578895
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
add eax, 4
add ebp, 1
mov dword [ebx + 8], eax
xor esi, esi
jmp 0x578792
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x5788a1
call fcn.005d29f1
push esi
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, ebx
call fcn.00471c90
add ebp, 1
xor esi, esi
jmp 0x578792
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xec]
lea esi, [eax + 0xf0]
mov dword [eax + 0xec], ecx
mov eax, esi
lea ebp, [edi + 0xf0]
call fcn.004449b0
mov eax, ebp
mov dword [esp + 0x14], 0
call fcn.0057a810
test eax, eax
jle 0x578933
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x578909
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x57890e
call fcn.005d29f1
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
lea ebx, [edx + eax*4]
call fcn.00444930
mov ebx, dword [esp + 0x14]
add ebx, 1
mov eax, ebp
mov dword [esp + 0x14], ebx
call fcn.0057a810
cmp ebx, eax
jl 0x5788f4
mov esi, dword [esp + 0x24]
add esi, 0x100
mov eax, esi
lea ebp, [edi + 0x100]
call fcn.004449b0
mov eax, ebp
mov dword [esp + 0x14], 0
call fcn.0057a810
test eax, eax
jle 0x57899f
lea ecx, [ecx]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x578975
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x57897a
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
lea ebx, [ecx + edx*4]
call fcn.00444930
mov ebx, dword [esp + 0x14]
add ebx, 1
mov eax, ebp
mov dword [esp + 0x14], ebx
call fcn.0057a810
cmp ebx, eax
jl 0x578960
fld qword [edi + 0x110]
mov eax, dword [esp + 0x24]
fstp qword [eax + 0x110]
pop esi
fld qword [edi + 0x118]
pop ebp
fstp qword [eax + 0x118]
pop ebx
fld qword [edi + 0x120]
fstp qword [eax + 0x120]
add esp, 0x14
ret 4