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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x10190c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101e5aec]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov ebx, dword [ebp + 0x20c]
mov edi, dword [ebp + 0x210]
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
xchg ebx, eax
xchg ebx, eax
mov byte [ebp], al
push 0x1ff
push eax
lea edx, [ebp + 1]
push edx
call fcn.1012ea60
add esp, 0xc
cmp dword [0x101d0800], 0x6370
mov dword [ebp - 0x28], 0
mov ebp, ebp
mov ecx, dword [esi + 0x32d8]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x14]
je 0x1004f379
mov ecx, dword [ecx + 0x14]
push ecx
lea eax, [ebp]
push eax
push esi
call fcn.1005fa80
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
push 0x10198b24
push edi
call fcn.1012e9d0
add esp, 8
test eax, eax
jne 0x1004f379
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x62
mov byte [ebp - 0x12], al
mov ah, ah
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
call fcn.1012f564
add esp, 8
mov dword [ebp - 0x18], eax
mov esi, esi
test eax, eax
je 0x1004f379
push 2
push 0
push eax
call fcn.1012f41b
add esp, 0xc
cmp dword [0x101d080c], 0xffff909a
mov eax, dword [ebp - 0x18]
push eax
call fcn.1012f326
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [0x101d080c], 0x6f65
add eax, 1
push eax
call fcn.1012de1c
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
mov ebp, ebp
test edi, edi
jne 0x1004f329
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1012ee5b
add esp, 4
mov bh, bh
xor eax, eax
jmp 0x1004f5ac
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.1012f41b
add esp, 0xc
push ecx
pop ecx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push edi
call fcn.1012f173
add esp, 0x10
mov edx, edx
mov edx, dword [ebp - 0x1c]
mov byte [edx + edi], 0
mov edi, edi
mov eax, dword [ebp - 0x18]
push eax
call fcn.1012ee5b
add esp, 4
cmp dword [0x101d0814], 0xffffa774
cmp dword [0x101d0820], 0xffffc66e
push 0x1000000
call fcn.1012de1c
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, edi
test eax, eax
jne 0x1004f3a4
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.1012dedf
add esp, 4
mov ah, ah
xor eax, eax
jmp 0x1004f5ac
mov byte [eax], 0
mov edi, edi
cmp dword [0x101d0804], 0xffffe50a
mov dword [ebp - 4], 0
cmp dword [esi + 0x32c8], 0
jne 0x1004f430
push 0x1000000
push eax
cmp dword [ebp + 0x224], 0
je 0x1004f401
mov edx, dword [ebp + 0x220]
push edx
mov eax, dword [ebp + 0x21c]
push eax
mov ecx, dword [ebp + 0x218]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x24]
push eax
push edi
push ebx
push esi
call fcn.10056760
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov bh, bh
jmp 0x1004f46d
mov ecx, dword [ebp + 0x220]
push ecx
mov edx, dword [ebp + 0x21c]
push edx
mov eax, dword [ebp + 0x218]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push edi
push ebx
push esi
call fcn.10051330
add esp, 0x28
mov dword [ebp - 0x2c], eax
push eax
pop eax
jmp 0x1004f46d
mov ecx, dword [ebp + 0x224]
push ecx
push eax
mov edx, dword [ebp + 0x220]
push edx
mov eax, dword [ebp + 0x21c]
push eax
mov ecx, dword [ebp + 0x218]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push edi
push esi
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.1004a150
add esp, 0x20
mov dword [ebp - 0x2c], eax
cmp dword [0x101d0820], 0x3991
or esi, 0xffffffff
mov dword [ebp - 4], esi
cmp eax, 1
jne 0x1004f585
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004f482
sub eax, edx
je 0x1004f51c
mov byte [ebp - 0x18], 0x77
mov byte [ebp - 0x17], 0x62
mov byte [ebp - 0x16], cl
mov edx, edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.1012f564
add esp, 8
mov esi, eax
mov eax, eax
test esi, esi
je 0x1004f585
mov edi, dword [ebp - 0x1c]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004f4c4
sub eax, edx
push esi
push 1
push eax
push edi
call fcn.101318e9
add esp, 0x10
cmp dword [0x101d0820], 0xffffc66e
push esi
call fcn.1012ee5b
add esp, 4
cmp dword [0x101d0804], 0xffffe50a
jmp 0x1004f585
push 0x18
call fcn.1011cdc0
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1004f54c
mov ecx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x35]
push edx
mov ecx, eax
call fcn.10004820
jmp 0x1004f54e
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], eax
test byte [ebp - 0x20], 1
je 0x1004f55e
and dword [ebp - 0x20], 0xfffffffe
cmp dword [0x101d0808], 0x5206
test eax, eax
je 0x1004f322
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.1000c2d0
cmp dword [0x101d0814], 0xffffa774
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1012dedf
add esp, 4
cmp dword [0x101d080c], 0x6f65
mov eax, dword [ebp - 0x28]
push eax
call fcn.1012dedf
add esp, 4
push eax
pop eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.1012e3ba
add ebp, 0x204
mov esp, ebp
pop ebp
ret