Function at 0x411120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp eax, 3
je 0x411430
cmp eax, 2
je 0x411169
cmp eax, 1
je 0x411169
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 4], 0xffffffff
je 0x411179
push dword [edi]
call fcn.00413fe0
add esp, 4
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x411151
cmp esi, dword [eax + 0x10]
jge 0x411198
push eax
call fcn.004140a0
add esp, 4
mov eax, dword [edi]
cmp dword [eax + 0x10], esi
jge 0x4111b1
nop
push dword [edi]
call fcn.004140f0
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x4111a0
lea eax, [ebp - 0x33c]
push eax
push esi
mov ecx, edi
call fcn.00410900
test byte [ebp - 0x234], 0x10
mov eax, dword [ebp + 0x14]
je 0x41122a
cmp eax, 1
je 0x411215
mov al, byte [ebx]
cmp al, 0x2f
je 0x41120a
cmp al, 0x5c
je 0x41120a
test al, al
je 0x4111e5
cmp byte [ebx + 1], 0x3a
je 0x41120a
lea eax, [edi + 0x140]
push ebx
push eax
call fcn.00410810
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
push ebx
push 0
call fcn.00410810
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 1
je 0x411330
mov al, byte [ebx]
mov esi, ebx
mov dword [ebp - 0x210], ebx
mov ecx, ebx
test al, al
je 0x41125c
cmp al, 0x2f
je 0x41124b
cmp al, 0x5c
jne 0x41124e
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x411243
mov dword [ebp - 0x210], esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00410660
add esp, 8
cmp esi, ebx
jne 0x411279
mov byte [ebp - 0x108], 0
jmp 0x4112ab
mov eax, esi
sub eax, ebx
cmp eax, 0x104
jae 0x41150c
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x4112e3
cmp al, 0x5c
je 0x4112e3
test al, al
je 0x4112ab
cmp byte [ebp - 0x107], 0x3a
je 0x4112e3
push dword [ebp - 0x210]
lea eax, [ebp - 0x108]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.00410810
add esp, 0x1c
jmp 0x41130e
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.00410810
add esp, 0x18
push 0
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41134d
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x138]
push dword [edi]
call fcn.00414160
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x411380
push 0x4000
call fcn.0041a658
add esp, 4
mov dword [edi + 0x13c], eax
lea esp, [esp]
lea eax, [ebp - 0x33d]
push eax
push 0x4000
push dword [edi + 0x13c]
push dword [edi]
call fcn.00414470
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x4113ff
test esi, esi
js 0x4113d1
jle 0x4113c4
push 0
lea eax, [ebp - 0x210]
push eax
push esi
push dword [edi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4113d8
cmp byte [ebp - 0x33d], 0
jne 0x4113df
test esi, esi
jne 0x411380
mov esi, 0x5000000
jmp 0x411404
mov esi, 0x400
jmp 0x411404
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor esi, esi
jmp 0x411404
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x411411
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.00413fe0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x411494
cmp eax, 0xffffffff
je 0x411449
push dword [edi]
call fcn.00413fe0
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x411151
cmp esi, dword [eax + 0x10]
jge 0x411469
push eax
call fcn.004140a0
add esp, 4
mov eax, dword [edi]
cmp dword [eax + 0x10], esi
jge 0x411481
push dword [edi]
call fcn.004140f0
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x411470
push dword [edi + 0x138]
push dword [edi]
call fcn.00414160
add esp, 8
mov dword [edi + 4], esi
lea eax, [ebp - 0x33d]
push eax
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.00414470
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4114c0
push dword [edi]
call fcn.00413fe0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x33d], 0
jne 0x411215
test esi, esi
jle 0x4114e9
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xffffff96
mov ecx, 0x1000
mov eax, 0x5000000
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041b2a2
int3