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

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x101791bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101ce2ac]
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 edi, edx
mov ebx, dword [ebp + 0x20c]
mov esi, 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
test ch, ch
mov byte [ebp], al
push 0x1ff
push eax
lea edx, [ebp + 1]
push edx
call fcn.10117df0
add esp, 0xc
mov ebp, ebp
mov dword [ebp - 0x28], 0
test ch, ch
mov ecx, dword [edi + 0x32d0]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0x14]
je 0x1004a511
mov ecx, dword [ecx + 0x14]
push ecx
lea eax, [ebp]
push eax
push edi
call fcn.10058ce0
add esp, 0xc
mov edx, edx
push 0x10182810
push esi
call fcn.101174c0
add esp, 8
test eax, eax
jne 0x1004a511
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x62
mov byte [ebp - 0x12], al
xchg ebx, eax
xchg ebx, eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
call fcn.10118d36
add esp, 8
mov dword [ebp - 0x18], eax
test dl, dl
test eax, eax
je 0x1004a511
push 2
push 0
push eax
call fcn.10118bed
add esp, 0xc
test cl, cl
mov eax, dword [ebp - 0x18]
push eax
call fcn.10118af8
add esp, 4
mov dword [ebp - 0x1c], eax
push eax
pop eax
add eax, 1
push eax
call fcn.1011671b
add esp, 4
mov esi, eax
mov dword [ebp - 0x28], esi
test al, al
test esi, esi
jne 0x1004a4d1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1011862d
add esp, 4
test dl, dl
xor eax, eax
jmp 0x1004a708
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.10118bed
add esp, 0xc
mov bh, bh
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push esi
call fcn.10118945
add esp, 0x10
test ah, ah
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], 0
mov bl, bl
mov eax, dword [ebp - 0x18]
push eax
call fcn.1011862d
add esp, 4
test edi, edi
mov al, al
push 0x1000000
call fcn.1011671b
add esp, 4
mov dword [ebp - 0x1c], eax
test esi, esi
test eax, eax
jne 0x1004a53c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.101167de
add esp, 4
mov edi, edi
xor eax, eax
jmp 0x1004a708
mov byte [eax], 0
push eax
pop eax
test eax, 0x5adf
mov dword [ebp - 4], 0
cmp dword [edi + 0x32c0], 0
jne 0x1004a5c0
push 0x1000000
push eax
cmp dword [ebp + 0x224], 0
je 0x1004a593
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 esi
push ebx
call fcn.10050f90
add esp, 0x24
mov dword [ebp - 0x2c], eax
test eax, eax
jmp 0x1004a5f5
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 esi
push ebx
call fcn.1004d270
add esp, 0x24
mov dword [ebp - 0x2c], eax
nop
jmp 0x1004a5f5
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 esi
push edi
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10045990
add esp, 0x20
mov dword [ebp - 0x2c], eax
mov edx, edx
or esi, 0xffffffff
mov dword [ebp - 4], esi
cmp eax, 1
jne 0x1004a6e9
lea eax, [ebp]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004a610
sub eax, edx
je 0x1004a690
mov byte [ebp - 0x18], 0x77
mov byte [ebp - 0x17], 0x62
mov byte [ebp - 0x16], cl
test edx, edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
push ecx
call fcn.10118d36
add esp, 8
mov esi, eax
push ecx
pop ecx
test esi, esi
je 0x1004a6e9
mov edi, dword [ebp - 0x1c]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004a650
sub eax, edx
push esi
push 1
push eax
push edi
call fcn.1011a9fe
add esp, 0x10
test cl, cl
push esi
call fcn.1011862d
add esp, 4
mov dh, dh
jmp 0x1004a6e9
push 0x18
call fcn.10105660
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1004a6c0
mov ecx, 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x35]
push edx
mov ecx, eax
call fcn.10011370
jmp 0x1004a6c2
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], eax
test byte [ebp - 0x20], 1
je 0x1004a6d2
and dword [ebp - 0x20], 0xfffffffe
test esi, esi
test eax, eax
je 0x1004a4ca
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.100113d0
test edx, edx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.101167de
add esp, 4
mov bh, bh
mov eax, dword [ebp - 0x28]
push eax
call fcn.101167de
add esp, 4
mov ebx, ebx
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.10116cb9
add ebp, 0x204
mov esp, ebp
pop ebp
ret