Function at 0x402e00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eed80
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x539050]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x539050]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov esi, ecx
lea edi, [esi + 0x1c]
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x84], ebx
cmp dword [esi + 0x14], ebx
jne 0x402e65
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x40306b
cmp dword [esi + 0x18], 8
jb 0x402e70
mov esi, dword [esi + 4]
jmp 0x402e73
add esi, 4
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402ea2
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x40306b
push ebx
lea ecx, [esp + 0x24]
push ecx
push 3
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x2c], 0xef
mov byte [esp + 0x2d], 0xbb
mov byte [esp + 0x2e], 0xbf
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea esi, [esp + 0x58]
mov byte [esp + 0x84], 1
call fcn.00403090
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x84], 2
cmp dword [esp + 0x70], 0x10
mov edx, dword [esp + 0x5c]
jae 0x402f1c
lea edx, [esp + 0x5c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f21
sub eax, esi
push eax
push edx
lea eax, [esp + 0x44]
call fcn.004024b0
push 2
push 0x5365d0
lea eax, [esp + 0x44]
call fcn.004024b0
mov eax, ebp
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f50
sub eax, esi
push eax
push ebp
lea eax, [esp + 0x44]
call fcn.004024b0
push 2
push 0x53659c
lea eax, [esp + 0x44]
call fcn.004024b0
lea eax, [esp + 0x24]
push eax
call fcn.00403410
mov byte [esp + 0x84], 3
cmp dword [esp + 0x54], 0x10
mov esi, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
jae 0x402f99
lea ebp, [esp + 0x40]
test byte [0x545e0c], 1
jne 0x402fb6
or dword [0x545e0c], 1
push 0x4eeef0
call fcn.00404d58
add esp, 4
push ebp
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004040a0
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x30]
jne 0x402fd2
call fcn.00404c21
mov eax, dword [esp + 0x30]
push ebx
lea edx, [esp + 0x24]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x402ffd
push eax
call fcn.0040490e
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040490e
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x54], esi
jb 0x40302e
mov edx, dword [esp + 0x40]
push edx
call fcn.0040490e
add esp, 4
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x70], esi
jb 0x403052
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040490e
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004047dd
add esp, 0x74
ret 4