Function at 0x41a4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x453d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x64c], ebx
cmp esi, 3
je 0x41a513
cmp esi, 2
je 0x41a5f3
cmp esi, 1
je 0x41a5f3
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x41a577
cmp eax, 0xffffffff
je 0x41a52d
mov eax, dword [edi]
push eax
call fcn.00417ff0
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x41a4fb
cmp esi, dword [eax + 0x10]
jge 0x41a549
push eax
call fcn.00417c10
add esp, 4
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x41a562
mov edx, dword [edi]
push edx
call fcn.00417c60
mov eax, dword [edi]
add esp, 4
cmp dword [eax + 0x10], esi
jl 0x41a550
mov ecx, dword [edi + 0x23c]
mov edx, dword [edi]
push ecx
push edx
call fcn.00419ff0
add esp, 8
mov dword [edi + 4], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi]
lea eax, [ebp - 0x645]
push eax
push ecx
push ebx
push edx
call fcn.0041a170
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x41a5a6
mov eax, dword [edi]
push eax
call fcn.00417ff0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x645], 0
jne 0x41a6f3
test esi, esi
jle 0x41a5cf
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x6a]
neg eax
sbb eax, eax
pop edi
and eax, 0x4fff000
pop esi
add eax, 0x1000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
or ebx, 0xffffffff
cmp dword [edi + 4], ebx
je 0x41a606
mov ecx, dword [edi]
push ecx
call fcn.00417ff0
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jge 0x41a4fb
cmp ebx, dword [eax + 0x10]
jge 0x41a625
push eax
call fcn.00417c10
add esp, 4
mov edx, dword [edi]
cmp dword [edx + 0x10], ebx
jge 0x41a687
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x41a67d
cmp dword [esi + 0x18], 0
je 0x41a67d
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x41a67d
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
push 0
lea edx, [esi + 0x78]
mov dword [esi + 0x10], eax
push edx
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00417870
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x41a630
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x644]
push edx
push ebx
mov ecx, edi
call fcn.00418190
test byte [ebp - 0x438], 0x10
je 0x41a708
cmp esi, 1
je 0x41a6f3
mov ecx, dword [ebp - 0x64c]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x41a6c3
cmp eax, 0x5c
je 0x41a6c3
test ax, ax
je 0x41a6e3
cmp word [ecx + 2], 0x3a
jne 0x41a6e3
push ecx
push 0
call fcn.00418880
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
push ecx
add edi, 0x244
push edi
call fcn.00418880
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x64c]
cmp esi, 1
je 0x41a7c0
mov esi, ebx
movzx eax, word [esi]
mov ecx, esi
test ax, ax
je 0x41a73e
cmp ax, 0x2f
je 0x41a72f
cmp ax, 0x5c
jne 0x41a732
lea ebx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x41a723
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
jmp 0x41a750
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41a750
cmp ebx, esi
jne 0x41a7e1
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x244]
push esi
lea ecx, [ebp - 0x414]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x20c]
push edx
push esi
call fcn.00418880
add esp, 0x1c
mov eax, dword [ebp - 0x438]
push 0
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a84b
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10
mov ecx, ebx
sub ecx, esi
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x20c], dx
mov ax, word [ebp - 0x20c]
cmp ax, 0x2f
je 0x41a81b
cmp ax, 0x5c
je 0x41a81b
test ax, ax
je 0x41a76c
cmp word [ebp - 0x20a], 0x3a
jne 0x41a76c
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x414]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x20c]
push edx
push 0
call fcn.00418880
add esp, 0x18
jmp 0x41a79d
mov edx, dword [edi + 0x23c]
mov eax, dword [edi]
push edx
push eax
call fcn.00419ff0
add esp, 8
cmp dword [edi + 0x240], 0
jne 0x41a879
push 0x4000
call fcn.0042c198
add esp, 4
mov dword [edi + 0x240], eax
mov dword [ebp - 0x64c], 0
jmp 0x41a890
mov edx, dword [edi + 0x240]
mov eax, dword [edi]
lea ecx, [ebp - 0x645]
push ecx
push 0x4000
push edx
push eax
call fcn.0041a170
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x41a8f0
test esi, esi
js 0x41a8e4
jle 0x41a8d7
mov edx, dword [edi + 0x240]
push 0
lea ecx, [ebp - 0x650]
push ecx
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a8fc
cmp byte [ebp - 0x645], 0
jne 0x41a908
test esi, esi
jne 0x41a890
mov dword [ebp - 0x64c], 0x5000000
jmp 0x41a924
mov dword [ebp - 0x64c], 0x1000
jmp 0x41a924
mov dword [ebp - 0x64c], 0x400
jmp 0x41a924
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x42c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x41a931
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
push eax
call fcn.00417ff0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x64c]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d3b1
mov esp, ebp
pop ebp
ret 0x10