Function at 0x10005f60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1013f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
mov word [ebp - 0x30], cx
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
call fcn.10007e10
push 0x10138550
lea edx, [ebp - 0x34]
push edx
lea edi, [ebx + 1]
mov dword [ebp - 4], ebx
call fcn.10007f70
cmp eax, 0xffffffff
je 0x10006003
lea edx, [eax + 1]
lea eax, [ebp - 0x34]
push eax
or ecx, 0xffffffff
lea esi, [ebp - 0x7c]
call fcn.10007d00
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10007e10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x64], 8
jb 0x10006003
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.10031f94
add esp, 4
push 0x10138554
lea edx, [ebp - 0x34]
push edx
mov edi, 1
call fcn.10007f70
cmp eax, 0xffffffff
je 0x1000604f
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x7c]
call fcn.10007d00
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10007e10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x64], 8
jb 0x1000604f
mov edx, dword [ebp - 0x78]
push edx
call fcn.10031f94
add esp, 4
lea ebx, [ebp - 0x34]
call fcn.10005860
cmp dword [ebp - 0x20], 0
je 0x1000659c
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.10005d80
add esp, 4
test al, al
je 0x10006084
cmp dword [ebp - 0x1c], 8
jb 0x100065ae
mov edx, dword [ebp - 0x30]
push edx
jmp 0x100065a6
lea eax, [ebp - 0x54]
push eax
call fcn.10007d30
mov byte [ebp - 4], 3
lea ebx, [ebp - 0x38]
lea edi, [ebp - 0x54]
mov byte [ebp - 0x38], 2
call fcn.10007dc0
mov ecx, dword [ebp - 0x20]
lea edx, [ecx*4 + 0x314]
push edx
call fcn.10008ad0
add esp, 4
lea ebx, [ebp - 0x38]
mov byte [ebp - 0x38], 0x20
call fcn.10007dc0
push 4
call fcn.10008ad0
add esp, 4
push 1
call fcn.10008ad0
add esp, 4
push 0x21000000
call fcn.10008ad0
mov eax, dword [ebp - 0x20]
add esp, 4
push eax
call fcn.10008b30
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
add esp, 4
xor esi, esi
test ecx, ecx
jbe 0x1000615d
cmp esi, ecx
jbe 0x10006104
call fcn.10031672
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x10006110
lea ecx, [ebp - 0x30]
lea ebx, [ecx + esi*2]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x1000611e
xor edx, edx
jmp 0x10006123
mov edx, dword [ebp - 0x40]
sub edx, ecx
mov edi, eax
sub edi, ecx
cmp edi, edx
jae 0x10006135
mov cl, byte [ebx]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x44], eax
jmp 0x10006155
mov edi, eax
cmp ecx, eax
jbe 0x10006140
call fcn.10031672
mov eax, dword [ebp - 0x54]
push edi
push eax
push ebx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
call fcn.10008050
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, ecx
jb 0x10006104
mov edx, dword [ebp - 0x48]
mov byte [ebp - 0x38], 0x22
test edx, edx
jne 0x1000616c
xor ecx, ecx
jmp 0x10006171
mov ecx, dword [ebp - 0x40]
sub ecx, edx
mov esi, eax
sub esi, edx
cmp esi, ecx
jae 0x10006182
mov byte [eax], 0x22
inc eax
mov dword [ebp - 0x44], eax
jmp 0x100061a2
mov esi, eax
cmp edx, eax
jbe 0x1000618d
call fcn.10031672
mov eax, dword [ebp - 0x54]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x54]
call fcn.10008050
mov edx, dword [ebp - 0x20]
add edx, 0x1a
push edx
lea edi, [ebp - 0x54]
call fcn.10008ad0
mov eax, dword [ebp - 0x20]
add eax, 0x3018
add esp, 4
push eax
call fcn.10008b90
add esp, 4
push 0x310b3009
call fcn.10008ad0
add esp, 4
push 0x6035504
call fcn.10008ad0
add esp, 4
push 0x6130245
call fcn.10008ad0
mov ecx, dword [ebp - 0x48]
add esp, 4
mov byte [ebp - 0x38], 0x4e
test ecx, ecx
jne 0x100061fb
xor edx, edx
jmp 0x10006200
mov edx, dword [ebp - 0x40]
sub edx, ecx
mov eax, dword [ebp - 0x44]
mov esi, eax
sub esi, ecx
cmp esi, edx
jae 0x10006214
mov byte [eax], 0x4e
inc eax
mov dword [ebp - 0x44], eax
jmp 0x10006234
mov esi, eax
cmp ecx, eax
jbe 0x1000621f
call fcn.10031672
mov eax, dword [ebp - 0x54]
push esi
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
call fcn.10008050
mov eax, dword [ebp - 0x20]
add eax, 0x3109
push eax
lea edi, [ebp - 0x54]
call fcn.10008b90
mov ecx, dword [ebp - 0x20]
add ecx, 0x3007
add esp, 4
push ecx
call fcn.10008b90
add esp, 4
push 0x6035504
call fcn.10008ad0
add esp, 4
push 0x313
call fcn.10008b90
mov ecx, dword [ebp - 0x48]
mov bl, byte [ebp - 0x20]
add esp, 4
mov byte [ebp - 0x38], bl
test ecx, ecx
jne 0x10006285
xor edx, edx
jmp 0x1000628a
mov edx, dword [ebp - 0x40]
sub edx, ecx
mov eax, dword [ebp - 0x44]
mov esi, eax
sub esi, ecx
cmp esi, edx
jae 0x1000629d
mov byte [eax], bl
inc eax
mov dword [ebp - 0x44], eax
jmp 0x100062c0
mov esi, eax
cmp ecx, eax
jbe 0x100062a8
call fcn.10031672
mov eax, dword [ebp - 0x54]
push esi
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
call fcn.10008050
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
xor esi, esi
test ecx, ecx
jbe 0x1000632e
cmp esi, ecx
jbe 0x100062d5
call fcn.10031672
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x100062e1
lea ecx, [ebp - 0x30]
lea ebx, [ecx + esi*2]
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x100062ef
xor edx, edx
jmp 0x100062f4
mov edx, dword [ebp - 0x40]
sub edx, ecx
mov edi, eax
sub edi, ecx
cmp edi, edx
jae 0x10006306
mov cl, byte [ebx]
mov byte [eax], cl
inc eax
mov dword [ebp - 0x44], eax
jmp 0x10006326
mov edi, eax
cmp ecx, eax
jbe 0x10006311
call fcn.10031672
mov eax, dword [ebp - 0x54]
push edi
push eax
push ebx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
call fcn.10008050
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x20]
inc esi
cmp esi, ecx
jb 0x100062d5
mov edx, dword [ebp - 0x48]
mov byte [ebp - 0x38], 0x23
test edx, edx
jne 0x1000633d
xor ecx, ecx
jmp 0x10006342
mov ecx, dword [ebp - 0x40]
sub ecx, edx
mov esi, eax
sub esi, edx
cmp esi, ecx
jae 0x10006353
mov byte [eax], 0x23
inc eax
mov dword [ebp - 0x44], eax
jmp 0x10006376
mov esi, eax
cmp edx, eax
jbe 0x1000635e
call fcn.10031672
mov eax, dword [ebp - 0x54]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x54]
call fcn.10008050
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x58], esi
jb 0x1000638c
mov eax, dword [eax + 4]
jmp 0x1000638f
add eax, 4
push 0x101385b8
push eax
call fcn.1003114e
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100064d8
push 2
push 0
push ebx
call fcn.1003170c
add esp, 0xc
push ebx
call fcn.1003192e
add esp, 4
push 0
push 0
push ebx
mov edi, eax
call fcn.1003170c
add esp, 0xc
push edi
lea edi, [ebp - 0x54]
call fcn.10008ad0
add esp, 4
push ebx
push 1
lea edx, [ebp - 0x39]
push 1
push edx
call fcn.10031405
add esp, 0x10
test eax, eax
je 0x1000644b
lea ecx, [ecx]
mov edx, dword [ebp - 0x48]
test edx, edx
jne 0x100063fb
xor ecx, ecx
jmp 0x10006400
mov ecx, dword [ebp - 0x40]
sub ecx, edx
mov eax, dword [ebp - 0x44]
mov edi, eax
sub edi, edx
cmp edi, ecx
mov edi, eax
jae 0x10006418
mov cl, byte [ebp - 0x39]
inc edi
mov byte [eax], cl
mov dword [ebp - 0x44], edi
jmp 0x10006436
cmp edx, eax
jbe 0x10006421
call fcn.10031672
mov eax, dword [ebp - 0x54]
push edi
push eax
lea edx, [ebp - 0x39]
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
call fcn.10008050
push ebx
push 1
lea ecx, [ebp - 0x39]
push 1
push ecx
call fcn.10031405
add esp, 0x10
test eax, eax
jne 0x100063f0
push ebx
call fcn.10031499
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub eax, ecx
mov edi, esi
lea esi, [eax - 5]
add esp, 4
mov byte [ebp - 0x18], 6
mov byte [ebp - 0x17], 3
mov byte [ebp - 0x16], 0x55
mov byte [ebp - 0x15], 4
cmp dword [ebp - 0x58], esi
jae 0x100064de
mov esi, dword [ebp - 0x18]
jmp 0x10006480
cmp edi, eax
jb 0x1000648f
call fcn.10031672
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + edi], esi
lea eax, [ecx + edi]
jne 0x1000649f
add eax, 4
cmp byte [eax], 3
je 0x100064ad
mov eax, edx
sub eax, ecx
inc edi
lea ebx, [eax - 5]
cmp edi, ebx
jb 0x10006480
jmp 0x100064de
mov eax, edx
add edi, 5
sub eax, ecx
cmp edi, eax
jb 0x100064c3
call fcn.10031672
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov bl, byte [ecx + edi]
sub edx, ecx
cmp edx, 0x3b
ja 0x100064d5
call fcn.10031672
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0x3b], bl
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub edx, ecx
lea eax, [edx - 5]
mov edi, eax
and edi, 0xff0000
mov esi, eax
shr esi, 0x10
or edi, esi
mov esi, eax
shl esi, 0x10
and eax, 0xff00
or esi, eax
shr edi, 8
shl esi, 8
or edi, esi
cmp edx, 1
ja 0x10006513
call fcn.10031672
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x60]
mov dword [ecx + 1], edi
cmp dword [eax + 0x18], 8
jb 0x10006524
mov eax, dword [eax + 4]
jmp 0x10006527
add eax, 4
push 0x101385c0
push eax
call fcn.1003114e
mov edi, eax
add esp, 8
test edi, edi
je 0x10006575
mov eax, dword [ebp - 0x44]
xor esi, esi
sub eax, dword [ebp - 0x48]
je 0x1000656c
cmp esi, eax
jb 0x1000654e
call fcn.10031672
mov ecx, dword [ebp - 0x48]
push edi
push 1
add ecx, esi
push 1
push ecx
call fcn.10031afe
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
inc esi
add esp, 0x10
cmp esi, eax
jb 0x1000654e
push edi
call fcn.10031499
add esp, 4
mov eax, dword [ebp - 0x48]
xor esi, esi
cmp eax, esi
je 0x10006587
push eax
call fcn.10031f94
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.10031f94
add esp, 4
cmp dword [ebp - 0x1c], 8
jb 0x100065ae
mov eax, dword [ebp - 0x30]
push eax
call fcn.10031f94
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10030c80
mov esp, ebp
pop ebp
ret