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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x20]
sub esi, dword [eax + 0x1c]
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov eax, esi
sar eax, 4
test eax, eax
je 0x5f84e2
cmp eax, 0xfffffff
ja 0x5f89a6
mov dword [esp], esi
call fcn.006fec40
mov edi, dword [ebp + 8]
add esi, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], esi
mov esi, dword [edi + 0x20]
mov edi, dword [edi + 0x1c]
cmp esi, edi
je 0x5f8539
mov ecx, eax
mov edx, edi
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x5f8949
mov eax, dword [edx]
add edx, 0x10
add ecx, 0x10
mov dword [ecx - 0x10], eax
mov eax, dword [edx - 0xc]
mov dword [ecx - 0xc], eax
mov eax, dword [edx - 8]
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [ecx - 4], eax
cmp esi, edx
jne 0x5f8501
mov eax, dword [ebp - 0x2c]
add edi, 0x10
sub esi, edi
and esi, 0xfffffff0
lea eax, [eax + esi + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x28]
mov dword [ebx + 0x28], 0
mov ecx, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x20]
mov dword [ebx + 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [esp], eax
call fcn.00689c90
mov eax, dword [ebp + 8]
sub esp, 8
mov esi, dword [eax + 0x48]
sub esi, dword [eax + 0x44]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov eax, esi
sar eax, 2
imul eax, eax, 0x3e0f83e1
test eax, eax
je 0x5f85d5
cmp eax, 0x1f07c1f
ja 0x5f89e0
mov dword [esp], esi
call fcn.006fec40
mov edi, dword [ebp + 8]
add esi, eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], esi
mov ecx, dword [edi + 0x48]
mov edx, dword [edi + 0x44]
cmp ecx, edx
je 0x5f8930
lea esi, [edx + 0x84]
mov dword [ebp - 0x30], ebx
sub ecx, esi
shr ecx, 2
imul ecx, ecx, 0x3e0f83e1
and ecx, 0x3fffffff
add ecx, 1
imul ecx, ecx, 0x84
lea edi, [eax + ecx]
mov dword [ebp - 0x2c], edi
mov ebx, edi
lea esi, [esi]
test eax, eax
je 0x5f898a
mov edi, eax
add eax, 0x84
mov esi, edx
add edx, 0x84
cmp ebx, eax
mov ecx, 0x21
rep movsd dword es:[edi], dword [esi]
jne 0x5f8620
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [eax + 0x54]
sub esi, dword [eax + 0x50]
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov eax, esi
sar eax, 4
test eax, eax
je 0x5f8689
cmp eax, 0xfffffff
ja 0x5f89ab
mov dword [esp], esi
call fcn.006fec40
mov edi, eax
add esi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x50], edi
mov dword [ebx + 0x58], esi
mov esi, dword [ebp + 8]
mov dword [ebx + 0x54], edi
mov eax, dword [eax + 0x50]
mov edx, dword [esi + 0x54]
mov esi, edx
sub esi, eax
cmp edx, eax
je 0x5f86b8
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memmove
lea eax, [edi + esi]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x60]
sub esi, dword [eax + 0x5c]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
test eax, eax
je 0x5f86fe
cmp eax, 0xaaaaaaa
ja 0x5f89e9
mov dword [esp], esi
call fcn.006fec40
mov edi, dword [ebp + 8]
add esi, eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], esi
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x5c]
cmp ecx, edx
je 0x5f8940
lea esi, [edx + 0x18]
sub ecx, esi
shr ecx, 3
imul ecx, ecx, 0xaaaaaab
lea ecx, [ecx + ecx*2]
lea esi, [eax + ecx*8 + 0x18]
nop
test eax, eax
je 0x5f8974
mov ecx, dword [edx]
add eax, 0x18
add edx, 0x18
mov dword [eax - 0x18], ecx
mov ecx, dword [edx - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [edx - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [edx - 0xc]
mov dword [eax - 0xc], ecx
mov ecx, dword [edx - 8]
mov dword [eax - 8], ecx
mov ecx, dword [edx - 4]
mov dword [eax - 4], ecx
cmp eax, esi
jne 0x5f8730
mov eax, dword [ebp + 8]
mov dword [ebx + 0x60], esi
mov esi, dword [eax + 0x6c]
sub esi, dword [eax + 0x68]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
test eax, eax
je 0x5f87a8
cmp eax, 0x15555555
ja 0x5f8a01
mov dword [esp], esi
call fcn.006fec40
mov edi, dword [ebp + 8]
add esi, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], esi
mov ecx, dword [edi + 0x6c]
mov edx, dword [edi + 0x68]
cmp ecx, edx
je 0x5f8920
lea esi, [edx + 0xc]
sub ecx, esi
shr ecx, 2
imul ecx, ecx, 0x2aaaaaab
lea ecx, [ecx + ecx*2]
lea esi, [eax + ecx*4 + 0xc]
lea esi, [esi]
test eax, eax
je 0x5f895e
mov ecx, dword [edx]
add eax, 0xc
add edx, 0xc
mov dword [eax - 0xc], ecx
mov ecx, dword [edx - 8]
mov dword [eax - 8], ecx
mov ecx, dword [edx - 4]
mov dword [eax - 4], ecx
cmp eax, esi
jne 0x5f87e0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
mov dword [ebx + 0x6c], esi
lea esi, [ebx + 0x74]
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x7c], 0
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x80]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x88]
mov eax, dword [eax + 0x84]
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x84], eax
lea eax, [ebp - 0x1c]
mov dword [ebx + 0x88], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x74
mov dword [esp], eax
call fcn.00689c90
mov eax, dword [ebp + 8]
sub esp, 8
xor edx, edx
mov edi, dword [eax + 0x94]
sub edi, dword [eax + 0x90]
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
test edi, edi
jne 0x5f8910
add edi, edx
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x94], edx
mov dword [ebx + 0x98], edi
mov ecx, dword [eax + 0x90]
xor esi, esi
mov eax, dword [eax + 0x94]
mov dword [ebp - 0x2c], eax
sub eax, ecx
je 0x5f88e5
mov dword [esp], edx
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x2c], edx
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x2c]
lea eax, [edx + esi]
mov dword [ebx + 0x94], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x9c]
mov dword [ebx + 0x9c], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp], edi
call fcn.006fec40
mov edx, eax
mov eax, dword [ebp + 8]
jmp 0x5f88a4
mov esi, eax
mov eax, edi
jmp 0x5f8806
mov dword [ebp - 0x2c], eax
jmp 0x5f8648
mov esi, eax
mov eax, edi
jmp 0x5f8768
add edx, 0x10
cmp esi, edx
je 0x5f852a
mov ecx, 0x10
jmp 0x5f8509
add edx, 0xc
cmp esi, 0xc
je 0x5f8803
mov eax, 0xc
jmp 0x5f87e8
add edx, 0x18
cmp esi, 0x18
je 0x5f8765
mov eax, 0x18
jmp 0x5f8738
add edx, 0x84
cmp ebx, 0x84
je 0x5f8642
mov eax, 0x84
jmp 0x5f8628
call fcn.006e4260
call fcn.006e4260
mov esi, eax
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x5f89c1
mov dword [esp], eax
call fcn.006febf0
mov ecx, dword [ebp - 0x34]
call fcn.0068a400
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x5f89d8
mov dword [esp], eax
call fcn.006febf0
mov dword [esp], esi
call fcn.005e6130
call fcn.006e4260
mov esi, eax
jmp 0x5f89c1
call fcn.006e4260
mov esi, eax
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x5f89b2
mov dword [esp], eax
call fcn.006febf0
jmp 0x5f89b2
call fcn.006e4260
mov esi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x5f89f0
mov dword [esp], eax
call fcn.006febf0
jmp 0x5f89f0