Function at 0x10030e80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x340
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x33c], eax
mov eax, dword [esp + 0x344]
push ebx
mov ebx, ecx
test eax, eax
jne 0x10030eac
mov eax, 0x10000
jmp 0x100311a0
cmp dword [eax], 1
je 0x10030ebb
mov eax, 0x80000
jmp 0x100311a0
push ebp
mov ebp, dword [eax + 4]
push esi
or esi, 0xffffffff
push edi
cmp dword [ebp + 4], esi
je 0x10030ed1
mov edi, dword [ebp]
call fcn.1002ff80
mov edi, dword [esp + 0x358]
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp edi, dword [esi + 4]
jl 0x10030eed
mov eax, 0x10000
jmp 0x1003119d
cmp edi, dword [esi + 0x10]
jge 0x10030f05
call fcn.1002f8f0
test eax, eax
je 0x10030f05
mov eax, 0x700
jmp 0x1003119d
mov eax, dword [ebp]
cmp dword [eax + 0x10], edi
jge 0x10030f65
lea ecx, [ecx]
mov esi, dword [ebp]
test esi, esi
je 0x10030efb
cmp dword [esi + 0x18], 0
je 0x10030efb
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x10030efb
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.1002f650
xor ecx, ecx
add esp, 0x10
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
test eax, eax
jne 0x10030efb
mov edx, dword [ebp]
cmp dword [edx + 0x10], edi
jl 0x10030f10
lea eax, [esp + 0x14]
push eax
push edi
lea edx, [esp + 0x20]
mov ecx, ebp
mov dword [esp + 0x1c], 0
call fcn.100300c0
mov ecx, dword [esp + 0x120]
mov al, byte [ebx]
shr ecx, 4
test cl, 1
je 0x10030fca
cmp al, 0x2f
je 0x10030fa1
cmp al, 0x5c
je 0x10030fa1
test al, al
je 0x10030fb3
cmp byte [ebx + 1], 0x3a
jne 0x10030fb3
push ebx
push 0
call fcn.100306a0
add esp, 8
xor eax, eax
jmp 0x1003119d
push ebx
add ebp, 0x140
push ebp
call fcn.100306a0
add esp, 8
xor eax, eax
jmp 0x1003119d
mov byte [esp + 0x248], 0
mov esi, ebx
mov ecx, ebx
test al, al
je 0x10030ff3
lea ebx, [ebx]
cmp al, 0x2f
je 0x10030fe8
cmp al, 0x5c
jne 0x10030feb
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10030fe0
push 0x104
lea edx, [esp + 0x148]
push ebx
push edx
call fcn.1010ffa3
add esp, 0xc
cmp esi, ebx
jne 0x1003107c
mov byte [esp + 0x144], 0
push esi
lea ecx, [esp + 0x148]
push ecx
lea edi, [ebp + 0x140]
push edi
lea edx, [esp + 0x254]
push str._s_s_s
push edx
call fcn.1010d6a8
lea eax, [esp + 0x158]
push eax
push edi
call fcn.100306a0
add esp, 0x1c
mov ecx, dword [esp + 0x120]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100310df
mov eax, 0x200
jmp 0x1003119d
mov eax, esi
sub eax, ebx
mov byte [esp + eax + 0x144], 0
mov al, byte [esp + 0x144]
cmp al, 0x2f
je 0x100310ad
cmp al, 0x5c
je 0x100310ad
test al, al
je 0x10031015
cmp byte [esp + 0x145], 0x3a
jne 0x10031015
push esi
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x250]
push 0x1014a0c0
push edx
call fcn.1010d6a8
lea eax, [esp + 0x154]
push eax
push 0
call fcn.100306a0
add esp, 0x18
jmp 0x10031048
mov eax, dword [ebp + 0x138]
push eax
mov eax, dword [ebp]
call fcn.1002fb80
add esp, 4
cmp dword [ebp + 0x13c], 0
jne 0x1003110d
push 0x4000
call fcn.1010ccc2
add esp, 4
mov dword [ebp + 0x13c], eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x13c]
lea ecx, [esp + 0x12]
push ecx
lea edx, [esp + 0x17]
push edx
push eax
mov eax, dword [ebp]
mov ecx, 0x4000
mov byte [esp + 0x1e], 0
call fcn.1002fd00
mov esi, eax
add esp, 0xc
cmp esi, 0xffffff96
je 0x10031167
test esi, esi
jl 0x10031167
jle 0x1003115c
mov edx, dword [ebp + 0x13c]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push ebx
call edi
test eax, eax
je 0x10031167
cmp byte [esp + 0x13], 0
jne 0x10031167
test esi, esi
jne 0x10031113
mov edi, dword [ebp]
call fcn.1002ff80
mov esi, eax
test esi, esi
jne 0x10031194
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x134]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x340]
pop ebx
xor ecx, esp
mov dword [0x10193a18], eax
call fcn.1010d699
add esp, 0x340
ret