Function at 0x4048a0
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 sub.MSVCRT.dll_strchr
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
test eax, eax
je 0x404949
mov al, byte [esi]
or al, byte [0x484668]
je 0x404949
push 0x484668
lea ecx, [esp + 0x20]
push ecx
call ebp
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040e790
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 0x404949
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 0x404949
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 [0x71a010]
test al, al
je 0x4049cb
mov cl, byte [esi]
or cl, al
je 0x4049cb
push 0x71a010
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0040e790
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 0x4049cb
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 0x4049cb
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 [0x71a218]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x404a6f
mov eax, 0x61837c
mov dword [esp + 0x14], eax
mov dl, byte [eax]
or dl, byte [esi]
je 0x404a4f
push eax
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.0040e790
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 0x404a4b
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 0x404bd9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x71a218]
inc ecx
add eax, 0x104
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jl 0x4049e9
mov al, byte [0x7199f0]
test al, al
je 0x404af1
mov cl, byte [esi]
or cl, al
je 0x404af1
push 0x7199f0
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0040e790
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 0x404af1
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 0x404af1
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 [0x719cfc]
test al, al
je 0x404b73
mov dl, byte [esi]
or dl, al
je 0x404b73
push 0x719cfc
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.0040e790
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 0x404b73
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 0x404b73
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 [0x719af4]
je 0x404bf0
push 0x719af4
lea ecx, [esp + 0x20]
push ecx
call ebp
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040e790
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 0x404bf0
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 0x404bf0
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 [0x719bf8]
test al, al
je 0x404c72
mov cl, byte [esi]
or cl, al
je 0x404c72
push 0x719bf8
lea edx, [esp + 0x20]
push edx
call ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0040e790
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 0x404c72
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 0x404c72
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 0x7197b0
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret