Function at 0x408ee0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41c248
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x1098]
cmp eax, dword [ebp + 0x109c]
je 0x4092af
cmp dword [ebp + 0x10a8], 0
je 0x4092af
lea ebx, [ebp + 0xc20]
mov ecx, ebx
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408f40
sub ecx, edx
sar ecx, 1
je 0x4092af
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
movq qword [esp + 0x24], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x78], 0
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, ebp
call fcn.00408af0
mov ecx, dword [ebp + 0x109c]
mov eax, 0x9ad70599
sub ecx, dword [ebp + 0x1098]
imul ecx
mov dword [esp + 0x18], 0
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409139
xor edi, edi
lea esi, [ebp + 0x10a4]
mov dword [esp + 0x1c], edi
lea esp, [esp]
mov ebx, dword [ebp + 0x1098]
xor eax, eax
add ebx, edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [ebx], ax
je 0x40901f
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409010
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.00402c40
mov byte [esp + 0x78], 1
lea eax, [esp + 0x30]
mov edi, dword [esi]
mov ecx, esi
push eax
call fcn.0040a900
mov esi, eax
cmp esi, dword [ebp + 0x10a4]
je 0x409073
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x409055
mov eax, dword [eax]
push ecx
push eax
push dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x40]
call fcn.00405da0
test eax, eax
js 0x409073
mov dword [esp + 0x20], esi
lea eax, [esp + 0x20]
jmp 0x409081
mov eax, dword [ebp + 0x10a4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
cmp dword [eax], edi
setne al
mov byte [esp + 0x17], al
mov byte [esp + 0x78], 0
cmp dword [esp + 0x44], 8
jb 0x4090a6
push dword [esp + 0x30]
call fcn.0040eef6
mov al, byte [esp + 0x1b]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
test al, al
je 0x4090f5
lea edx, [ebx + 0x280]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090d0
sub ecx, esi
lea eax, [esp + 0x24]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push edx
push ebx
push dword [ebx + 0x698]
call fcn.00408690
mov ecx, dword [ebp + 0x109c]
lea esi, [ebp + 0x10a4]
sub ecx, dword [ebp + 0x1098]
mov eax, 0x9ad70599
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc ebx
imul ecx
add edi, 0x69d
mov dword [esp + 0x18], ebx
add edx, ecx
mov dword [esp + 0x1c], edi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x408fd0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x4091dc
xorps xmm0, xmm0
mov dword [esp + 0x38], 0
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x78], 2
lea ecx, [esp + 0x4c]
call fcn.0040c660
sub edi, esi
lea ecx, [esp + 0x30]
mov eax, 0x9ad70599
imul edi
push ecx
add edx, edi
lea ecx, [esp + 0x50]
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x69d
push eax
push esi
call fcn.0040c700
test al, al
jne 0x409212
mov byte [esp + 0x78], al
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4091dc
push eax
call fcn.0040eef6
add esp, 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x78], 0xffffffff
test esi, esi
je 0x4092af
push esi
call fcn.0040eef6
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x4092af
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jne 0x40922a
mov byte [esp + 0x78], 0
test edi, edi
je 0x4091dc
push edi
jmp 0x4091bc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [ebp + 0xc20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409290
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
sub ebx, edi
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10a4]
call fcn.0040a520
mov byte [esp + 0x78], 0
lea ecx, [esp + 0x30]
call fcn.00405310
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00405310
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0040e73a
add esp, 0x68
ret