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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053610
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1005f004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x622b77
mov word [ebp - 0x18], 0x6272
mov byte [ebp - 0x16], bl
call fcn.100318c8
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10003f07
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.100318c8
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x10003f04
push 0x100000
call fcn.10010ed5
add esp, 4
mov edi, eax
mov dword [ebp - 0x2c], edi
push 0x100000
push 0
push edi
call fcn.10012c40
push 0
push 0
push ebx
call fcn.10031f97
push 0
push 0
push esi
call fcn.10031f97
mov eax, dword [ebp + 0x10]
add esp, 0x24
mov byte [ebp - 0x12], 0
cmp dword [eax], 0
jne 0x10003d5f
nop
push esi
mov byte [ebp - 0x12], 0
call fcn.10031293
add esp, 4
test eax, eax
jne 0x10003d5f
push esi
call fcn.100312be
add esp, 4
test eax, eax
jne 0x10003d5b
push ebx
call fcn.100312be
add esp, 4
test eax, eax
jne 0x10003d5b
push esi
push 0x100000
push 1
push edi
mov byte [ebp - 0x12], al
call fcn.10031b20
push ebx
push eax
push 1
push edi
call fcn.1003285a
add esp, 0x20
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x10003d00
jmp 0x10003d5f
mov byte [ebp - 0x12], 1
push ebx
mov ebx, 0x4f9f1eb
mov ebx, 0xd4402e1e
add ebx, eax
add ebx, edx
pop ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.100022c0
mov eax, dword [ebp + 0x10]
add esp, 4
cmp dword [eax], 0
jne 0x10003ecf
cmp byte [ebp - 0x12], 0
jne 0x10003ecf
cmp byte [ebp + 0x14], 0
mov bl, 1
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 4], bl
je 0x10003e5c
mov edi, dword [ebp - 0x24]
push 0
push 0
push edi
call fcn.10031f97
add esp, 0xc
test eax, eax
jne 0x10003ed2
mov esi, dword [ebp - 0x1c]
push eax
push eax
push esi
call fcn.10031f97
add esp, 0xc
test eax, eax
jne 0x10003ed2
push 0xa8c50
call fcn.10010ed5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x10003ecf
push 0x1518a
push 0
push ebx
call fcn.10012c40
push edi
push 0x1518a
push 8
push ebx
call fcn.10031b20
add esp, 0x1c
cmp eax, 0x1518a
jne 0x10003e2d
lea eax, [ebp - 0x24]
push eax
call fcn.1000bd20
push esi
push 0x1518a
push 8
push ebx
call fcn.1003285a
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call fcn.1000bc90
add esp, 4
jmp 0x10003ecf
cmp byte [ebp + 0x18], 0
je 0x10003ed2
push esi
mov esi, 0xc2e9133e
xor esi, eax
sbb esi, eax
xor esi, eax
and esi, ecx
or esi, ecx
pop esi
mov esi, dword [ebp - 0x1c]
push 2
push 0
push esi
call fcn.10031f97
push esi
call fcn.100325bf
mov edi, eax
add esp, 0x10
cmp edi, 0x2c
jle 0x10003ecf
push 0
lea eax, [edi - 8]
push 4
push esi
mov dword [ebp - 0x28], eax
call fcn.10031f97
push esi
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.1003285a
push 0
lea eax, [edi - 0x2c]
push 0x28
push esi
mov dword [ebp - 0x28], eax
call fcn.10031f97
push esi
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.1003285a
add esp, 0x38
mov bl, byte [ebp - 0x11]
lea eax, [ebp - 0x24]
push eax
call fcn.1000bd20
add esp, 4
cmp dword [0x100611d0], 0
jne 0x10003f07
lea eax, [ebp - 0x1c]
push eax
call fcn.1000bcd0
add esp, 4
jmp 0x10003f07
mov bl, byte [ebp - 0x11]
lea eax, [ebp - 0x24]
push eax
call fcn.1000bd20
add esp, 4
cmp dword [0x100611d0], 0
jne 0x10003f28
lea eax, [ebp - 0x1c]
push eax
call fcn.1000bcd0
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.100022c0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret