Function at 0x411bd1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x4d0018]
xor eax, esp
mov dword [esp + 0x658], eax
cmp dword [ebp + 0x14], 3
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x411e95
cmp dword [ebp + 0x14], 2
je 0x411c0d
cmp dword [ebp + 0x14], 1
jne 0x411eb5
cmp dword [esi + 4], 0xffffffff
je 0x411c1a
mov ecx, dword [esi]
call fcn.004112bf
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jge 0x411eb5
cmp dword [eax + 0x10], ebx
jle 0x411c46
mov ecx, eax
call fcn.00410c45
jmp 0x411c41
mov ecx, dword [esi]
call fcn.00410c7c
mov eax, dword [esi]
cmp dword [eax + 0x10], ebx
jl 0x411c3a
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push ebx
call fcn.004114f4
test byte [esp + 0x22c], 0x10
je 0x411c98
cmp dword [ebp + 0x14], 1
je 0x411f0f
movzx eax, word [edi]
cmp eax, 0x2f
je 0x411c8a
cmp eax, 0x5c
je 0x411c8a
test ax, ax
je 0x411c82
cmp word [edi + 2], 0x3a
je 0x411c8a
lea ecx, [esi + 0x244]
jmp 0x411c8c
xor ecx, ecx
mov edx, edi
call fcn.00411aa5
jmp 0x411f0f
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x411dc2
movzx eax, word [edi]
mov edx, edi
mov ecx, edi
mov dword [esp + 0x1c], 0x2f
mov dword [esp + 0x14], 0x5c
jmp 0x411cd4
cmp ax, word [esp + 0x1c]
je 0x411ccb
cmp ax, word [esp + 0x14]
jne 0x411cce
lea edx, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x411cbd
lea eax, [esp + 0x250]
mov ecx, edi
sub eax, edi
mov ebx, eax
movzx eax, word [ecx]
mov word [ebx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x411ce6
push 0
pop ebx
cmp edx, edi
jne 0x411d08
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x411d4a
mov eax, edx
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x411f45
xor ecx, ecx
mov word [esp + eax + 0x250], cx
mov ax, word [esp + 0x250]
cmp ax, word [esp + 0x1c]
je 0x411d72
cmp ax, word [esp + 0x14]
je 0x411d72
test ax, ax
je 0x411d4a
cmp word [esp + 0x252], 0x3a
je 0x411d72
push edx
lea eax, [esp + 0x254]
push eax
lea edi, [esi + 0x244]
push edi
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x411d93
push edx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edi, ebx
lea edx, [esp + 0x250]
mov ecx, edi
call fcn.00411aa5
push ebx
push dword [esp + 0x230]
lea eax, [esp + 0x460]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411dd1
mov eax, 0x200
jmp 0x411f2e
mov edx, dword [esi + 0x23c]
mov ecx, dword [esi]
call fcn.00410f18
cmp dword [esi + 0x240], ebx
jne 0x411df7
push 0x4000
call fcn.0047f4b0
pop ecx
mov dword [esi + 0x240], eax
mov edx, dword [esi + 0x240]
lea eax, [esp + 0x13]
mov ecx, dword [esi]
push eax
push 0x4000
call fcn.00411069
mov dword [esp + 0x20], eax
pop ecx
pop ecx
cmp eax, 0xffffff96
je 0x411e75
test eax, eax
js 0x411e46
jle 0x411e3b
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411e4d
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
jne 0x411e54
test eax, eax
jne 0x411df7
mov ebx, 0x5000000
jmp 0x411e7a
mov ebx, 0x400
jmp 0x411e7a
lea eax, [esp + 0x240]
push eax
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x411e7a
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x411e87
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
call fcn.004112bf
mov eax, ebx
jmp 0x411f2e
mov ebx, dword [ebp + 8]
cmp ebx, dword [esi + 4]
je 0x411ee4
cmp dword [esi + 4], 0xffffffff
je 0x411eaa
mov ecx, dword [esi]
call fcn.004112bf
mov ecx, dword [esi]
or dword [esi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jl 0x411ebc
mov eax, 0x10000
jmp 0x411f2e
cmp dword [ecx + 0x10], ebx
jle 0x411ed4
call fcn.00410c45
jmp 0x411ecf
mov ecx, dword [esi]
call fcn.00410c7c
mov ecx, dword [esi]
cmp dword [ecx + 0x10], ebx
jl 0x411ec8
mov edx, dword [esi + 0x23c]
call fcn.00410f18
mov dword [esi + 4], ebx
mov ecx, dword [esi]
lea eax, [esp + 0x13]
push eax
push dword [ebp + 0x10]
mov edx, edi
call fcn.00411069
mov edi, eax
pop ecx
pop ecx
test edi, edi
jg 0x411f08
mov ecx, dword [esi]
call fcn.004112bf
or dword [esi + 4], 0xffffffff
cmp byte [esp + 0x13], 0
je 0x411f13
xor eax, eax
jmp 0x411f2e
test edi, edi
jle 0x411f1e
mov eax, 0x600
jmp 0x411f2e
cmp edi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047edf7
int3