Function at 0x40861c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [0x44e5e0]
push ebx
push esi
movsx ecx, word [eax*2 + 0x442e88]
mov esi, dword [ebp + 0x14]
push edi
mov edi, 0x12
mov dword [ebp - 4], ecx
cmp edx, edi
jle 0x408373
mov ebx, 0x240
nop dword [eax]
mov ecx, dword [0x44e5d0]
mov esi, dword [ebp + 0x14]
movsx eax, word [ecx + ebx + 2]
test dword [ebp - 4], eax
je 0x408368
mov eax, dword [ecx + ebx + 0x1c]
test eax, eax
je 0x408368
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
add esp, 0x10
test eax, eax
jne 0x408763
mov edx, dword [0x44e5e0]
inc edi
add ebx, 0x20
cmp edi, edx
jl 0x408330
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp eax, 0xc
ja case.0x40837f.3
jmp dword [eax*4 + 0x408780]
mov edi, dword [0x44e610]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
cmp word [esi + 2], 0
jne 0x4083cf
cmp dword [edi + 0xec], 4
je 0x4083c5
mov eax, dword [esi + 0x10]
mov dword [0x44e600], eax
call fcn.00403460
mov dword [edi + 0xec], 0
mov dword [edi + 0xec], 7
cmp word [esi + 2], 1
jne case.0x40837f.3
mov eax, dword [0x44e5fc]
mov ecx, dword [esi + 0x10]
mov dword [0x44e600], eax
call fcn.00404f40
mov eax, dword [0x44e610]
cmp dword [eax + 0xec], 4
je case.0x40837f.3
mov dword [eax + 0xec], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x44e610]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408420
sub ecx, edx
lea edi, [ecx + 1]
mov ecx, dword [ebx + 0x31c]
sub ecx, 0x18
mov eax, dword [ecx + 0xc]
cmp edi, dword [ecx + 8]
jle 0x40844a
mov edx, edi
call fcn.00410450
mov dword [ebx + 0x31c], eax
push edi
push esi
push eax
call fcn.0041bdf0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44e610]
push dword [ebp + 0xc]
push dword [eax + 0x31c]
call fcn.004011c0
mov edi, eax
test edi, edi
je 0x40876a
push dword [ebp + 0x10]
push esi
push edi
call fcn.004015a0
cmp byte [0x44d96d], 0
mov esi, eax
je 0x4084a3
mov dword [0x44d960], 0
mov byte [0x44d96d], 0
jmp 0x4084ac
push edi
call fcn.0041c4fe
add esp, 4
test esi, esi
js 0x40876a
mov eax, dword [0x44e610]
mov dword [eax + 0x314], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44e610]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax + 0x31c]
test ebx, ebx
jns 0x4084f3
push 0x443300
push eax
call fcn.0041c471
mov edi, eax
add esp, 8
test edi, edi
jne 0x408517
jmp 0x40876a
push 0x443304
push eax
call fcn.0041c471
mov edi, eax
add esp, 8
test edi, edi
je 0x40876a
push 0
push ebx
push edi
call fcn.004201f0
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push esi
call fcn.0041c7b6
push edi
mov esi, eax
call fcn.0041c4fe
add esp, 0x14
call fcn.0042020b
test esi, esi
js 0x40876a
mov ecx, dword [0x44e610]
xor eax, eax
mov dword [ecx + 0x314], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44e610]
push dword [eax + 0x31c]
call fcn.004014e0
mov ecx, dword [0x44e610]
mov dword [ecx + 0x314], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44e610]
push dword [eax + 0x31c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40876a
jmp case.0x40837f.3
mov eax, dword [0x44e610]
push dword [eax + 0x31c]
call fcn.00424812
add esp, 4
test eax, eax
je case.0x40837f.3
jmp 0x40876a
mov eax, dword [0x44e610]
push dword [eax + 0x31c]
call fcn.0042449f
add esp, 4
test eax, eax
je case.0x40837f.3
jmp 0x40876a
mov eax, dword [0x44e610]
mov ebx, dword [eax + 0x31c]
push ebx
call fcn.004014e0
mov edi, eax
test edi, edi
js 0x40876a
push 0x442e0c
push esi
call fcn.0041c471
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40876a
push 0
push ebx
call fcn.004011c0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x40876a
push 1
push 0x8000
call fcn.004238e8
add esp, 8
mov ebx, eax
test edi, edi
je 0x40865f
mov esi, 0x8000
cmp edi, esi
cmovl esi, edi
push esi
push ebx
push dword [ebp + 8]
call fcn.004015a0
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.0041c7b6
add esp, 0x10
cmp eax, esi
jl 0x40865c
sub edi, esi
jne 0x408631
mov esi, dword [ebp + 8]
cmp byte [0x44d96d], 0
je 0x40867b
mov dword [0x44d960], 0
mov byte [0x44d96d], 0
jmp 0x408684
push esi
call fcn.0041c4fe
add esp, 4
push dword [ebp - 4]
call fcn.0041c4fe
push ebx
call fcn.0041efc2
add esp, 8
test edi, edi
je case.0x40837f.3
jmp 0x40876a
mov edi, dword [0x44e9fc]
test edi, edi
jne 0x4086b7
call fcn.00410380
mov edi, dword [0x44e9fc]
mov eax, dword [edi + 0x10]
mov dword [0x44e9fc], eax
mov eax, 2
push 0x1018
mov word [edi], ax
mov dword [edi + 8], 0x1000
call fcn.0041efc7
push dword [ebp + 0xc]
mov dword [edi + 0x10], eax
lea ecx, [eax + 0x18]
mov dword [edi + 0xc], ecx
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [ecx], 0
mov dword [0x44e60c], ecx
mov ecx, dword [0x44e610]
mov ecx, dword [ecx + 0x31c]
call fcn.00417750
mov ecx, dword [0x44e610]
add esp, 8
mov dword [ecx + 0x310], eax
mov eax, dword [0x44e60c]
mov dword [esi], eax
xor eax, eax
pop edi
inc esp
add byte [ecx + 0x5fc03306], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44e60c]
mov esi, dword [eax - 0x14]
cmp eax, dword [esi + 0xc]
jne case.0x40837f.3
cmp word [esi], 2
jne 0x40874e
push dword [esi + 0x10]
call fcn.0041efc2
add esp, 4
mov eax, dword [0x44e9fc]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [0x44e9fc], esi
mov word [esi], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x44b830
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xc
push eax
call fcn.0041a8ee
nop
xchg byte [ebx - 0x789effc0], al
inc eax
add byte [ecx - 0x79], ah
inc eax
add byte [ecx], dl
test byte [eax], al
pop esi
test byte [eax], al
enter 0x4084, 0
push eax
test dword [eax], eax
jne 0x408723
inc eax
add byte [ebx - 0x4cffbf7b], dl
test dword [eax], eax
rol dword [ebp - 0x795dffc0], cl
inc eax
add byte [eax], dh
xchg dword [eax], eax
int3