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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 0x88]
mov ebx, dword [eax + 0x54]
push edi
push dword [ebp + 0x14]
mov edi, dword [esi + 8]
push dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 0x9c]
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
call fcn.005c6409
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
jne 0x5f57ee
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 8]
test cl, cl
mov byte [esi + 0x8c], cl
je 0x5f51af
mov ecx, dword [ebp - 0x2c]
lea edx, [esi + 0x90]
lea esi, [eax + 0xc]
mov eax, dword [ebp + 8]
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ecx + 0x1c]
add eax, 0xa0
mov dword [eax], esi
mov ecx, dword [ecx + 0x20]
mov esi, edx
lea edi, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.005c3804
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 8]
add eax, 0xa0
push eax
call fcn.005c4b39
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x48]
cmp eax, 0x636f6d70
je 0x5f5588
cmp eax, 0x6f75746c
je 0x5f5302
mov dword [ebp - 4], 7
cmp dword [ebp + 0x18], 0
jne 0x5f57ee
mov ecx, dword [ebx + 0x30]
sub ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x20]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 8]
push dword [ecx + 8]
mov dword [ebp - 0x38], eax
push eax
call fcn.005c3714
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebp - 0x34]
call fcn.005c3714
add esp, 0x10
cmp byte [esi + 0x8c], 0
mov dword [ebp - 0x34], eax
je 0x5f5246
lea eax, [esi + 0x90]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.005c4b90
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.005c4b39
add esp, 0x10
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x5f5261
neg eax
push 0
push eax
lea eax, [edi + 0x14]
push eax
call fcn.005c4b05
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.005c4a7f
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
and dword [ebp - 0x4c], 0xffffffc0
add eax, 0x3f
and eax, 0xffffffc0
and edx, 0xffffffc0
mov dword [ebp - 0x48], eax
sub eax, edx
pop ecx
pop ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebx + 0x18], eax
mov eax, ecx
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x20], edx
add edx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov dword [ebx + 0x24], ecx
add ecx, eax
mov eax, dword [ebx + 4]
and edx, 0xffffffc0
and ecx, 0xffffffc0
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
test byte [eax + 8], 4
jne 0x5f577a
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
call fcn.005f2458
test al, al
je 0x5f52e7
mov eax, dword [ebp - 8]
cmp byte [eax + 0x20], 0
jne 0x5f577a
cmp dword [ebx + 0x28], 0
je 0x5f579b
mov eax, dword [esi + 0xb0]
sub eax, dword [esi + 0xa8]
jmp 0x5f5798
cmp byte [esi + 0x8c], 0
je 0x5f5323
push dword [esi + 0xa4]
lea eax, [ebx + 0x6c]
push dword [esi + 0xa0]
push eax
call fcn.005c4b05
add esp, 0xc
movsx eax, word [ebx + 0x6e]
lea ecx, [eax + 4]
test ecx, ecx
mov dword [ebp + 8], ecx
je 0x5f5344
movsx ecx, word [edi + 0x3a]
movsx edx, word [edi + 0x16]
add ecx, eax
lea eax, [edx + ecx + 4]
cmp eax, dword [edi + 4]
ja 0x5f5361
movzx eax, word [ebx + 0x6c]
test ax, ax
je 0x5f5377
movsx ecx, word [edi + 0x38]
movsx edx, word [edi + 0x14]
movsx eax, ax
add ecx, edx
add ecx, eax
cmp ecx, dword [edi + 8]
jbe 0x5f5377
movsx eax, word [ebx + 0x6c]
push eax
push dword [ebp + 8]
push edi
call fcn.005c776e
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x5f537b
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x5f57ee
movsx eax, word [ebx + 0x6e]
shl eax, 3
push eax
push dword [ebx + 0x70]
push dword [edi + 0x3c]
call fcn.005fbd60
movsx eax, word [ebx + 0x6c]
add eax, eax
push eax
push dword [ebx + 0x78]
push dword [edi + 0x44]
call fcn.005fbd60
movsx eax, word [ebx + 0x6e]
push eax
push dword [ebx + 0x74]
push dword [edi + 0x40]
call fcn.005fbd60
mov ax, word [ebx + 0x6e]
mov word [edi + 0x3a], ax
mov ax, word [ebx + 0x6c]
mov word [edi + 0x38], ax
mov eax, dword [esi + 0x14]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0xac], eax
push dword [esi + 0x10]
push dword [ebx + 0x28]
call fcn.005c3714
mov ecx, eax
lea eax, [esi + 0xc]
add ecx, dword [eax + 8]
add esp, 0x2c
mov dword [esi + 0xb0], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0xb4], ecx
cmp word [ebx + 0x6e], 0
je 0x5f51db
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
test edx, edx
je 0x5f5423
push ecx
lea ecx, [edi + 0x38]
push ecx
push eax
call edx
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 1
je 0x5f552b
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x50]
mov edx, ecx
imul edx, edx, 0x30
cmp ecx, 1
lea edx, [edx + eax - 0x30]
mov dword [ebp - 0x28], edx
jle 0x5f54eb
test byte [esi + 0x74], 4
jne 0x5f54eb
mov ecx, dword [esi + 0xb0]
sub ecx, dword [edx + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
sub eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
add eax, ecx
cmp edx, 0x18
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], edx
jge 0x5f5483
sub dword [ebp + 8], 8
cmp ecx, 0x18
jge 0x5f548b
add eax, 8
mov ecx, dword [ebp + 8]
add ecx, 0x20
and ecx, 0xffffffc0
lea edx, [eax + 0x20]
and edx, 0xffffffc0
cmp ecx, dword [ebp - 0x30]
mov dword [esi + 0xa8], ecx
mov dword [ebp - 0x20], edx
mov dword [esi + 0xb0], edx
jl 0x5f54bd
cmp dword [ebp - 0x24], 0
jle 0x5f54bd
add ecx, 0xffffffc0
mov dword [esi + 0xa8], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
cmp ecx, dword [edx + 8]
jg 0x5f54d7
cmp dword [ebp - 0x1c], 0
jle 0x5f54d7
add ecx, 0x40
mov dword [esi + 0xb0], ecx
mov ecx, dword [esi + 0xa8]
sub ecx, dword [ebp + 8]
mov dword [ebx + 0x90], ecx
jmp 0x5f556e
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xb0]
mov dword [ebp + 8], edx
lea eax, [ecx + 0x20]
and eax, 0xffffffc0
mov dword [esi + 0xa8], eax
add edx, 0x20
and edx, 0xffffffc0
sub eax, ecx
mov dword [esi + 0xb0], edx
mov dword [ebx + 0x90], eax
mov eax, dword [esi + 0xb0]
sub eax, dword [ebp + 8]
mov dword [ebx + 0x94], eax
jmp 0x5f557c
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xa8]
mov dword [ebp + 8], eax
lea eax, [esi + 0xc]
mov edx, dword [eax + 0x74]
lea edx, [edx + ecx + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xa8], edx
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
lea edx, [edx + eax + 0x20]
and edx, 0xffffffc0
mov dword [esi + 0xb0], edx
mov edx, dword [esi + 0xa8]
sub edx, ecx
mov dword [ebx + 0x90], edx
mov ecx, dword [esi + 0xb0]
sub ecx, eax
mov dword [ebx + 0x94], ecx
push edi
call fcn.005c3b64
pop ecx
jmp 0x5f51db
mov eax, dword [ebx + 0x80]
movsx ecx, word [edi + 0x16]
push eax
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], ecx
call fcn.005c78a3
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x5f57ee
mov eax, dword [ebp - 0x24]
shl eax, 5
push eax
push dword [ebx + 0x84]
push dword [edi + 0x58]
call fcn.005fbd60
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x20], 0
mov eax, dword [edi + 0x30]
add esp, 0xc
test ecx, ecx
mov dword [edi + 0x54], ecx
jbe 0x5f51db
shl eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0xa8]
mov eax, dword [edi + 0x34]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
mov ecx, dword [esi + 0xac]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0xb0]
mov dword [ebp - 0x48], ecx
mov ecx, dword [esi + 0xb4]
mov dword [ebp - 0x44], ecx
movsx ecx, word [edi + 0x16]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x18]
inc ecx
push ecx
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 0xc]
push esi
call fcn.005f510a
add esp, 0x14
test eax, eax
mov dword [ebp - 4], eax
jne 0x5f57ee
mov eax, dword [edi + 0x34]
add eax, dword [ebp - 0x18]
test word [eax + 4], 0x200
mov dword [ebp - 0x1c], eax
jne 0x5f5666
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0xa8], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0xac], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esi + 0xb0], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0xb4], ecx
movsx ecx, word [edi + 0x16]
mov edx, dword [ebp - 0x10]
sub ecx, edx
test byte [eax + 4], 0xc8
mov dword [ebp - 0x14], ecx
je 0x5f56af
mov ecx, dword [edi + 0x18]
lea ecx, [ecx + edx*8]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
lea ecx, [ecx + edx*8]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x34], ecx
jae 0x5f56ac
add eax, 0x10
push eax
push dword [ebp - 0xc]
call fcn.005c4b39
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jb 0x5f568f
mov ecx, dword [ebp - 0x14]
test byte [eax + 4], 2
jne 0x5f56ee
mov edx, dword [eax + 8]
mov esi, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add edx, esi
cmp edx, dword [ebp - 0x10]
jae 0x5f5771
cmp eax, ecx
jae 0x5f5771
mov ecx, dword [edi + 0x18]
lea esi, [ecx + edx*8]
mov edx, dword [ebp - 0x10]
add eax, edx
add eax, dword [ebp - 0x30]
mov edx, dword [esi]
lea ecx, [ecx + eax*8]
mov eax, dword [esi + 4]
sub edx, dword [ecx]
sub eax, dword [ecx + 4]
jmp 0x5f5726
push dword [esi + 0x10]
add esi, 0xc
push dword [eax + 8]
call fcn.005c3714
add eax, dword [esi + 8]
push dword [esi + 0xc]
add eax, 0x20
and eax, 0xffffffc0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xc]
call fcn.005c3714
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x34]
lea eax, [eax + ecx + 0x20]
add esp, 0x10
and eax, 0xffffffc0
push 5
pop ecx
lea esi, [edi + 0x14]
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x10]
push eax
lea ecx, [ecx + esi*8]
mov dword [ebp - 0x60], ecx
mov cx, word [ebp - 0x14]
push edx
lea eax, [ebp - 0x64]
push eax
mov word [ebp - 0x62], cx
call fcn.005c4b05
add dword [ebp - 0x18], 0x20
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
add esp, 0xc
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jb 0x5f55df
jmp 0x5f51db
mov dword [ebp - 4], 0x15
jmp 0x5f57ee
mov eax, dword [ebp - 8]
push dword [eax + 8]
push dword [ebx + 0x28]
call fcn.005c3714
and dword [ebx + 0x90], 0
and dword [ebx + 0x94], 0
pop ecx
pop ecx
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
push dword [ebx + 0x34]
call fcn.005c3714
mov ecx, dword [ebx + 0x28]
mov esi, dword [ebp - 0x2c]
add ecx, 0x20
add eax, 0x20
and ecx, 0xffffffc0
and eax, 0xffffffc0
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x34], eax
push dword [esi]
call fcn.005c3ad7
push edi
push dword [esi]
call fcn.005c78f5
add esp, 0x14
test eax, eax
mov dword [ebp - 4], eax
jne 0x5f57ee
mov esi, dword [esi]
push 5
add esi, 0x14
lea edi, [ebx + 0x6c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x48], 0x6f75746c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret