Function at 0x40307c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4643fb
call fcn.0043540c
sub esp, 0xc4
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp dword [ebp - 0x14], edi
je 0x4030c8
lea ecx, [ebp - 0x14]
call fcn.004056bd
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4030df
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004056bd
jmp 0x403429
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.004044f0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
mov byte [ebp - 4], 1
call fcn.004045af
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
je 0x4033f3
mov esi, 0x47d200
mov edi, 0x47d1fc
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x70], al
call fcn.004044f0
push 0x47d1f4
call fcn.00434ff7
pop ecx
push eax
push 0x47d1f4
lea ecx, [ebp - 0x70]
call fcn.004051a5
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0x46b5d4
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x403156
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x80], al
call fcn.004044f0
push 0x47d1f0
call fcn.00434ff7
pop ecx
push eax
push 0x47d1f0
lea ecx, [ebp - 0x80]
call fcn.004051a5
push dword [ebp - 0x10]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004067e8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00406871
add esp, 0x18
push dword [0x46b5d0]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
push ebx
push eax
call fcn.004050c7
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.004044f0
push 1
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.004044f0
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004044f0
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004044f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x46b5d4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x403216
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00434ff7
pop ecx
add eax, eax
lea ecx, [ebp - 0x28]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0x1c]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004055b3
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ecx + 4]
je 0x403394
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.004044f0
push esi
call fcn.00434ff7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.004051a5
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
mov byte [ebp - 0x60], al
call fcn.004044f0
push edi
call fcn.00434ff7
pop ecx
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.004051a5
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00406871
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 8
add ecx, 0x1c
push ecx
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00406871
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00406871
add esp, 0x24
push dword [0x46b5d0]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
push ebx
push eax
call fcn.004050c7
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.004044f0
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 8
call fcn.004044f0
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.004044f0
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.004044f0
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004044f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x46b5d4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x403360
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00434ff7
pop ecx
add eax, eax
lea ecx, [ebp - 0x28]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x1c]
call fcn.00405d62
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x1c], eax
jne 0x403257
push esi
call fcn.00434ff7
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.004051a5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x46b5d4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x4033bc
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.00434ff7
pop ecx
add eax, eax
lea ecx, [ebp - 0x28]
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x20]
call fcn.00405d98
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
cmp dword [ebp - 0x20], eax
jne 0x403116
mov esi, dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00434ff7
pop ecx
push eax
lea ecx, [esi + 0x10]
push dword [ebp + 8]
call fcn.00404e49
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.004044f0
cmp dword [ebp - 0x14], 0xffffffff
je 0x403429
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x403429
push dword [ebp - 0x14]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
leave
ret 4