Function at 0x405ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
push 0x3a
push esi
call fcn.00444fd0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
test eax, eax
je 0x405c5e
mov al, byte [esi]
or al, byte [0x4b3e14]
je 0x405c5e
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405f4b
push 0x4b3e14
lea ecx, [esp + 0x20]
push ecx
call ebp
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x34]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405c5e
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x22c]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405c5e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
mov al, byte [0x13b4b38]
test al, al
je 0x405cf5
mov cl, byte [esi]
or cl, al
je 0x405cf5
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405f4b
push 0x13b4b38
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405cf5
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405cf5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
mov eax, dword [0x13b4d40]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x405da7
mov eax, 0xbccf04
mov dword [esp + 0x14], eax
mov dl, byte [esi]
or dl, byte [eax]
je 0x405d87
mov ecx, dword [0x4b3e0c]
test ecx, ecx
je 0x405f4b
push eax
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x34]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405d83
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405f44
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x13b4d40]
inc ecx
add eax, 0x104
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jl 0x405d13
mov al, byte [0x13b4518]
test al, al
je 0x405e3e
mov cl, byte [esi]
or cl, al
je 0x405e3e
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405f4b
push 0x13b4518
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405e3e
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405e3e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
mov al, byte [0x13b4824]
test al, al
je 0x405ed5
mov dl, byte [esi]
or dl, al
je 0x405ed5
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405f4b
push 0x13b4824
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x34]
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405ed5
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405ed5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
mov al, byte [esi]
or al, byte [0x13b461c]
je 0x405f5b
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405f4b
push 0x13b461c
lea ecx, [esp + 0x20]
push ecx
call ebp
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x34]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x405f5b
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x22c]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405f5b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
mov al, byte [0x13b4720]
test al, al
je 0x405fea
mov cl, byte [esi]
or cl, al
je 0x405fea
mov eax, dword [0x4b3e0c]
test eax, eax
je 0x405fda
push 0x13b4720
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004139c0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x34]
push ecx
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405fea
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405fea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x214
ret
push esi
lea edx, [esp + 0x124]
push str.File_Write_Error._n_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push 0x13b41c4
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret