Function at 0x4144c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x65c
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x654], eax
mov eax, dword [esp + 0x660]
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
je 0x414519
cmp dword [eax], 1
je 0x4144f4
mov eax, 0x80000
jmp 0x4147da
mov ebp, dword [eax + 4]
or esi, 0xffffffff
cmp dword [ebp + 4], esi
je 0x414507
mov edi, dword [ebp]
call fcn.004135e0
mov edi, dword [esp + 0x674]
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp edi, dword [esi + 4]
jl 0x414523
mov eax, 0x10000
jmp 0x4147da
cmp edi, dword [esi + 0x10]
jge 0x41452d
call fcn.00412d90
mov eax, dword [ebp]
cmp dword [eax + 0x10], edi
jge 0x414588
mov esi, dword [ebp]
test esi, esi
je 0x414580
cmp dword [esi + 0x18], 0
je 0x414580
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x414580
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.00412940
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], edi
jl 0x414535
lea edx, [esp + 0x20]
push edx
push edi
mov ecx, ebp
call fcn.004137f0
test byte [esp + 0x22c], 0x10
movzx eax, word [ebx]
je 0x4145e3
cmp ax, 0x2f
je 0x4145ba
cmp ax, 0x5c
je 0x4145ba
test ax, ax
je 0x4145cc
cmp word [ebx + 2], 0x3a
jne 0x4145cc
push ebx
push 0
call fcn.00413e10
add esp, 8
xor eax, eax
jmp 0x4147da
push ebx
add ebp, 0x244
push ebp
call fcn.00413e10
add esp, 8
xor eax, eax
jmp 0x4147da
xor edi, edi
cmp ax, di
mov esi, ebx
mov ecx, ebx
je 0x41460c
movzx eax, ax
cmp ax, 0x2f
je 0x4145fd
cmp ax, 0x5c
jne 0x414600
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, di
jne 0x4145f1
push ebx
lea eax, [esp + 0x254]
push 0x104
push eax
call fcn.00451be6
add esp, 0xc
cmp esi, ebx
jne 0x414696
mov word [esp + 0x250], di
push esi
lea edx, [esp + 0x254]
push edx
lea ebx, [ebp + 0x244]
push ebx
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [esp + 0x250]
push ecx
push ebx
call fcn.00413e10
add esp, 8
mov edx, dword [esp + 0x22c]
push edi
push edx
push 2
push edi
push edi
push 0x40000000
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414702
mov eax, 0x200
jmp 0x4147da
mov ecx, esi
sub ecx, ebx
sar ecx, 1
mov word [esp + ecx*2 + 0x250], di
mov ax, word [esp + 0x250]
cmp ax, 0x2f
je 0x4146d0
cmp ax, 0x5c
je 0x4146d0
cmp ax, di
je 0x41462e
cmp word [esp + 0x252], 0x3a
jne 0x41462e
push esi
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x460]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x260]
push ecx
push edi
call fcn.00413e10
add esp, 0x18
jmp 0x414665
mov ecx, dword [ebp + 0x23c]
mov eax, dword [ebp]
push ecx
call fcn.004131f0
add esp, 4
cmp dword [ebp + 0x240], 0
jne 0x414730
push 0x4000
call fcn.0044ea80
add esp, 4
mov dword [ebp + 0x240], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], 0
mov edi, edi
mov eax, dword [ebp + 0x240]
lea edx, [esp + 0x17]
push edx
push eax
mov eax, dword [ebp]
mov ecx, 0x4000
call fcn.00413370
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x414794
test esi, esi
jl 0x41478a
jle 0x41477f
mov edx, dword [ebp + 0x240]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push edi
call ebx
test eax, eax
je 0x41479e
cmp byte [esp + 0x17], 0
jne 0x4147a8
test esi, esi
jne 0x414740
mov dword [esp + 0x18], 0x5000000
jmp 0x4147c7
mov dword [esp + 0x18], 0x1000
jmp 0x4147c7
mov dword [esp + 0x18], 0x400
jmp 0x4147c7
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x240]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp]
call fcn.004135e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [0x47d2e8], eax
call fcn.0044eeec
add esp, 0x65c
ret