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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x10086084]
xor eax, esp
mov dword [esp + 0xa0], eax
mov dword [esp + 0x28], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edi
mov ebx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], ebx
test edx, edx
je 0x1005f93d
test ecx, ecx
je 0x1005f93d
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1005f077
neg esi
sbb esi, esi
and esi, 0x25d
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x4000000
jbe 0x1005f09a
mov eax, 0x25d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc
cmp esi, eax
ja 0x1005f07e
push esi
jne 0x1005f0c6
push edx
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc
lea eax, [edi + 0x40000]
mov ecx, eax
mov dword [esp + 0x3c], eax
call fcn.1005fac6
test eax, eax
jne 0x1005f942
lea eax, [edi + 0x40014]
push eax
lea ecx, [esi + edx]
mov dword [esp + 0x10], eax
call fcn.1006079b
test eax, eax
jne 0x1005f942
push 0xa040
push eax
lea esi, [edi + 0x40030]
push esi
call sub.msvcrt.dll_memset
mov dword [edi + 0x40038], 0x400
mov eax, 1
mov dword [edi + 0x40034], 0
mov ecx, 0x100
mov dword [esi], 0x100
add edi, 0x4003c
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.1005fee2
mov eax, dword [ebp + 0x10]
mov esi, 1
cmp eax, 2
jbe 0x1005f15a
nop
inc esi
cmp dword [esi*4 + 0x1000bb10], eax
jb 0x1005f150
mov edi, dword [esp + 0x10]
mov ecx, 0x10
lea eax, [edi + 0x721a0]
lea esp, [esp]
mov dword [eax + 8], 0x55555555
lea eax, [eax + 0x10]
mov dword [eax - 4], 0
mov dword [eax - 0x10], 0x30
sub ecx, 1
jne 0x1005f170
lea eax, [edi + 0x722a0]
mov ecx, 0x20
jmp 0x1005f1a0
mov dword [eax + 8], 0x55555555
lea eax, [eax + 0x10]
mov dword [eax - 4], 0
mov dword [eax - 0x10], 0x30
sub ecx, 1
jne 0x1005f1a0
lea eax, [edi + 0x724a0]
lea edx, [ecx + 3]
jmp 0x1005f1d0
mov ecx, 0x40
jmp 0x1005f1e0
mov dword [eax + 8], 0x55555555
mov dword [eax + 0xc], 0
mov dword [eax], 0x30
add eax, 0x10
sub ecx, 1
jne 0x1005f1e0
sub edx, 1
jne 0x1005f1d0
lea eax, [edi + 0x730a0]
lea edx, [ecx + 3]
lea ebx, [ebx]
mov ecx, 0x40
jmp 0x1005f220
mov dword [eax + 8], 0x55555555
mov dword [eax + 0xc], 0
mov dword [eax], 0x30
add eax, 0x10
sub ecx, 1
jne 0x1005f220
sub edx, 1
jne 0x1005f210
push 0xa04c
lea eax, [edi + 0x4a070]
push edx
push eax
mov dword [esp + 0x5c], eax
call sub.msvcrt.dll_memset
lea eax, [edi + 0x4a070]
add esp, 0xc
lea ecx, [edi + 0x40014]
mov dword [eax], 0x1000bb10
mov dword [eax + 8], ecx
lea edx, [eax + 0xc]
mov dword [eax + 4], esi
mov dword [edx], esi
mov dword [eax + 0x14], 0x400
mov dword [eax + 0x10], 0
test esi, esi
je 0x1005f299
lea edi, [eax + 0x18]
mov ecx, esi
mov eax, 1
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
mov ecx, edx
call fcn.1005fee2
push 0xa04c
add edi, 0x540bc
push 0
push edi
mov dword [esp + 0x48], edi
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x18]
lea edx, [edi + 0xc]
mov dword [edi + 8], eax
mov ecx, 0x36
mov dword [edi], 0x1000c7b8
mov eax, 1
mov dword [edi + 4], 0x36
add esp, 0xc
mov dword [edi + 0x14], 0x200
mov dword [edi + 0x10], 0
add edi, 0x18
mov dword [edx], 0x36
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.1005fee2
mov edi, dword [esp + 0x10]
push 0xa04c
add edi, 0x5e108
push 0
push edi
mov dword [esp + 0x64], edi
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x18]
lea edx, [edi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
mov dword [edi], 0x1000bb10
mov dword [edi + 4], esi
mov dword [edx], esi
mov dword [edi + 0x14], 0x400
mov dword [edi + 0x10], 0
test esi, esi
je 0x1005f34c
add edi, 0x18
mov ecx, esi
mov eax, 1
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.1005fee2
mov esi, dword [esp + 0x10]
push 0xa04c
push 0
lea edi, [esi + 0x68154]
push edi
mov dword [esp + 0x60], edi
call sub.msvcrt.dll_memset
mov dword [edi], 0x1000c790
lea eax, [esi + 0x40014]
mov dword [edi + 8], eax
lea ecx, [edi + 0xc]
mov dword [edi + 4], 8
add esp, 0xc
mov dword [ecx], 8
mov dword [edi + 0x14], 0x200
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], 1
mov dword [edi + 0x24], 1
mov dword [edi + 0x28], 1
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 1
call fcn.1005fee2
mov ecx, dword [ebp + 0x10]
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x68], 2
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 2
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x6c], 3
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 3
mov dword [esp + 0x70], 4
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x1005f905
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
nop
and edx, 0xf
lea ecx, [esi + 0x40000]
mov dword [esp + 0x2c], edx
add edx, 0x721a
shl edx, 4
add edx, esi
call fcn.1005fb10
test eax, eax
mov eax, dword [esp + 0x2c]
jne 0x1005f4cc
add eax, eax
lea edx, [esi + 0x40014]
lea ecx, [esi + 0x40030]
mov dword [esp + 0x2c], eax
call fcn.100603b6
mov byte [ebx], al
xor edi, edi
inc ebx
xor eax, eax
mov dword [esp + 0x1c], ebx
jmp 0x1005f859
lea eax, [eax*2 + 1]
mov dword [esp + 0x2c], eax
lea ecx, [esi + 0x40000]
mov eax, dword [esp + 0x20]
and eax, 0x1f
mov dword [esp + 0x20], eax
lea edx, [eax + 0x722a]
shl edx, 4
add edx, esi
call fcn.1005fb10
test eax, eax
lea ecx, [esi + 0x40000]
mov eax, dword [esp + 0x20]
jne 0x1005f6bb
add eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
and eax, 0x3f
mov dword [esp + 0x14], eax
lea edx, [eax + 0x724a]
shl edx, 4
add edx, esi
call fcn.1005fb10
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x1005f54d
mov ecx, dword [esp + 0x50]
add eax, eax
mov dword [esp + 0x14], eax
call fcn.10060640
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x1005f612
lea eax, [eax*2 + 1]
mov edi, 1
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x40000]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x24]
and eax, 0x3f
mov dword [esp + 0x24], eax
lea edx, [eax + 0x728a]
shl edx, 4
add edx, esi
call fcn.1005fb10
mov ecx, dword [esp + 0x24]
lea ecx, [eax + ecx*2]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x98], ecx
test eax, eax
je 0x1005f5f6
mov ebx, 0x40
add ebx, 0x40
inc edi
cmp ebx, 0xc0
je 0x1005f5dc
mov esi, dword [esp + edi*4 + 0x94]
lea edx, [ebx + 0x724a]
mov ecx, dword [esp + 0x38]
and esi, 0x3f
add edx, esi
shl edx, 4
add edx, dword [esp + 0x10]
call fcn.1005fb10
lea ecx, [eax + esi*2]
mov dword [esp + edi*4 + 0x94], ecx
test eax, eax
jne 0x1005f5a0
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
mov eax, dword [esp + edi*4 + 0x60]
dec edi
mov dword [esp + 0xc], eax
nop
mov eax, dword [esp + edi*4 + 0x68]
mov dword [esp + edi*4 + 0x64], eax
inc edi
cmp edi, 3
jb 0x1005f600
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
call fcn.10060640
mov ecx, dword [esp + 0x34]
mov edx, eax
cmp edi, ecx
ja 0x1005f07e
mov eax, dword [ebp + 0x10]
mov esi, ebx
sub eax, ecx
sub esi, edi
lea ecx, [edx + 0xc]
cmp ecx, eax
jae 0x1005f69c
cmp edi, 4
jae 0x1005f67b
mov eax, edi
sub eax, 1
je 0x1005f65e
sub eax, 1
movzx eax, byte [esi]
mov byte [ebx], al
movzx eax, byte [esi + 1]
mov byte [ebx + 1], al
jne 0x1005f66a
sub edx, 2
add ebx, 2
jmp 0x1005f677
movzx eax, byte [esi]
mov byte [ebx], al
movzx eax, byte [esi + 1]
mov byte [ebx + 1], al
movzx eax, byte [esi + 2]
sub edx, 3
mov byte [ebx + 2], al
add ebx, 3
test edx, edx
jle 0x1005f6ae
sub esi, ebx
lea ecx, [ecx]
mov eax, dword [esi + ebx]
sub edx, 4
mov dword [ebx], eax
add ebx, 4
test edx, edx
jg 0x1005f680
add ebx, edx
mov dword [esp + 0x1c], ebx
xor eax, eax
jmp 0x1005f855
cmp edx, eax
ja 0x1005f07e
mov edi, ebx
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xc]
add ebx, edx
mov dword [esp + 0x1c], ebx
xor eax, eax
jmp 0x1005f855
lea eax, [eax*2 + 1]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
and eax, 0x3f
mov dword [esp + 0x18], eax
lea edx, [eax + 0x730a]
shl edx, 4
add edx, esi
call fcn.1005fb10
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1005f70e
mov ecx, dword [esp + 0x54]
add eax, eax
mov dword [esp + 0x18], eax
call fcn.10060640
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x30], eax
call fcn.10060640
mov dword [esp + 0xc], eax
jmp 0x1005f7e5
lea eax, [eax*2 + 1]
mov edi, 1
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x40000]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x28]
and eax, 0x3f
mov dword [esp + 0x28], eax
lea edx, [eax + 0x734a]
shl edx, 4
add edx, esi
call fcn.1005fb10
mov edx, dword [esp + 0x28]
lea edx, [eax + edx*2]
mov dword [esp + 0x28], edx
mov dword [esp + 0xa4], edx
test eax, eax
je 0x1005f7b7
mov ebx, 0x40
add ebx, 0x40
inc edi
cmp ebx, 0xc0
jae 0x1005f79d
mov esi, dword [esp + edi*4 + 0xa0]
mov ecx, dword [esp + 0x38]
and esi, 0x3f
lea edx, [esi + 0x730a]
add edx, ebx
shl edx, 4
add edx, dword [esp + 0x10]
call fcn.1005fb10
lea ecx, [eax + esi*2]
mov dword [esp + edi*4 + 0xa0], ecx
test eax, eax
jne 0x1005f761
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
dec edi
lea ecx, [esp + 0x74]
mov eax, dword [ecx + edi*8]
lea ecx, [ecx + edi*8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
lea ecx, [ecx]
mov eax, dword [ecx + 8]
lea ecx, [ecx + 8]
mov dword [ecx - 8], eax
inc edi
mov eax, dword [ecx + 4]
mov dword [ecx - 4], eax
cmp edi, 3
jb 0x1005f7d0
mov ecx, dword [esp + 0x3c]
call fcn.10060640
mov ecx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0xc]
mov edi, 1
mov edx, dword [esp + 0x34]
shl eax, cl
shl edi, cl
mov ecx, dword [ebp + 0x10]
sub ecx, edx
mov dword [esp + 0x5c], eax
cmp esi, ecx
ja 0x1005f07e
add eax, edi
cmp eax, edx
ja 0x1005f07e
test esi, esi
jle 0x1005f84f
mov edx, ebx
mov ecx, ebx
sub edx, dword [esp + 0x5c]
sub ecx, edi
sub edx, edi
sub edi, dword [esp + 0x5c]
mov al, byte [edi + ecx]
lea edx, [edx + 1]
sub al, byte [edx - 1]
lea ecx, [ecx + 1]
add al, byte [ecx - 1]
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x1005f834
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xc]
xor edi, edi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x1005f87d
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x40], edi
test edx, edx
je 0x1005f8dd
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
mov eax, ebx
sub eax, edx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
cmp eax, ecx
jae 0x1005f907
mov edx, dword [esp + 0x2c]
jmp 0x1005f480
mov edx, ebx
mov eax, dword [esi + 0x40008]
sub eax, 4
cmp eax, dword [esi + 0x40020]
jae 0x1005f07e
push ecx
mov ecx, esi
call fcn.10060a5b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x57
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc