Function at 0x409080
Capabilities:
Delete file
Get number of processors
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411f34
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x560], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
je 0x409e33
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
cmp edi, edx
je 0x409e33
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x409e33
xor eax, eax
lea esp, [esp]
cmp byte [eax + edi + 0x64], 0
jne 0x409124
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x409110
jmp 0x409e33
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x458]
push esi
push eax
call fcn.0040ab00
mov dword [esp + 0x580], 0
xorps xmm0, xmm0
movq qword [esp + 0x438], xmm0
mov dword [esp + 0x438], 0
mov word [esp + 0x43c], 0
mov byte [esp + 0x580], 1
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x43c]
call fcn.0040c010
xorps xmm0, xmm0
lea eax, [esp + 0x438]
movq qword [esp + 0x470], xmm0
mov dword [esp + 0x470], eax
mov eax, dword [esp + 0x438]
mov byte [esp + 0x474], 0
test eax, eax
jne 0x4091af
xor al, al
jmp 0x4091d1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4091c7
cmp eax, 0x80
je 0x4091c7
xor al, al
jmp 0x4091d1
mov byte [esp + 0x43c], 1
mov al, 1
mov byte [esp + 0x16], al
mov byte [esp + 0x474], al
mov byte [esp + 0x580], 2
xorps xmm0, xmm0
movq qword [esp + 0x42c], xmm0
mov dword [esp + 0x434], 0
mov dword [esp + 0x42c], 0
mov dword [esp + 0x430], 0
mov dword [esp + 0x434], 0
mov byte [esp + 0x580], 3
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x430]
mov byte [esp + 0x1b], 0
push eax
push esi
call fcn.0040a590
test al, al
jne 0x409259
cmp byte [esp + 0x17], al
je 0x409259
cmp dword [esi + 0x14], 8
jb 0x409250
mov eax, dword [esi]
jmp 0x409252
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 4]
xor al, al
mov edi, dword [ebx]
xor esi, esi
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
sub ecx, edi
mov byte [esp + 0x17], al
mov eax, 0x4ec4ec4f
imul ecx
mov dword [esp + 0x28], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409d42
lea esp, [esp]
imul esi, esi, 0x68
add esi, edi
cmp byte [esi + 0x64], 0
je 0x4098a8
mov ebx, dword [esp + 0x42c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [esp + 0x430]
xor edi, edi
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409333
xor eax, eax
mov dword [esp + 0x1c], eax
add ebx, eax
cmp dword [esi + 0x14], 8
jb 0x4092dc
mov ecx, dword [esi]
jmp 0x4092de
mov ecx, esi
cmp dword [ebx + 0x14], 8
jb 0x4092e8
mov eax, dword [ebx]
jmp 0x4092ea
mov eax, ebx
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409331
mov ecx, dword [esp + 0x430]
mov eax, 0x4ec4ec4f
mov ebx, dword [esp + 0x42c]
sub ecx, ebx
inc dword [esp + 0x20]
add dword [esp + 0x1c], 0x68
imul ecx
mov ecx, dword [esp + 0x20]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
mov eax, dword [esp + 0x1c]
jb 0x4092d0
jmp 0x409333
mov edi, ebx
test edi, edi
jne 0x4095a5
xor eax, eax
mov dword [esp + 0x48c], edi
mov dword [esp + 0x490], edi
mov dword [esp + 0x490], 7
mov dword [esp + 0x48c], edi
mov word [esp + 0x47c], ax
mov byte [esp + 0x580], 4
mov dword [esp + 0x4a4], eax
mov dword [esp + 0x4a8], eax
mov dword [esp + 0x4a8], 7
mov dword [esp + 0x4a4], eax
mov word [esp + 0x494], ax
mov byte [esp + 0x580], 5
mov dword [esp + 0x4bc], eax
mov dword [esp + 0x4c0], eax
mov dword [esp + 0x4c0], 7
mov dword [esp + 0x4bc], eax
mov word [esp + 0x4ac], ax
mov byte [esp + 0x580], 6
xorps xmm0, xmm0
movlpd qword [esp + 0x4c4], xmm0
movlpd qword [esp + 0x4cc], xmm0
movlpd qword [esp + 0x4d4], xmm0
mov dword [esp + 0x4dc], eax
mov byte [esp + 0x4e0], al
mov byte [esp + 0x580], 7
lea eax, [esp + 0x47c]
mov edi, dword [esp + 0x430]
cmp eax, edi
jae 0x409472
mov ebx, dword [esp + 0x42c]
cmp ebx, eax
ja 0x409472
mov ecx, eax
mov eax, 0x4ec4ec4f
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x434]
jne 0x40945f
push ecx
lea ecx, [esp + 0x430]
call fcn.0040b470
mov edi, dword [esp + 0x430]
mov ebx, dword [esp + 0x42c]
mov eax, dword [esp + 0x24]
imul eax, eax, 0x68
add eax, ebx
mov byte [esp + 0x580], 8
test edi, edi
je 0x4094aa
jmp 0x4094a2
cmp edi, dword [esp + 0x434]
jne 0x40948f
push ecx
lea ecx, [esp + 0x430]
call fcn.0040b470
mov edi, dword [esp + 0x430]
mov byte [esp + 0x580], 9
test edi, edi
je 0x4094aa
lea eax, [esp + 0x47c]
push eax
mov ecx, edi
call fcn.00408e90
mov byte [esp + 0x580], 7
mov eax, 0x4ec4ec4f
mov edx, dword [esp + 0x430]
add edx, 0x68
mov dword [esp + 0x430], edx
mov ecx, dword [esp + 0x42c]
sub edx, ecx
imul edx
lea edi, [ecx - 0x68]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add edi, eax
mov byte [esp + 0x580], 0xb
cmp dword [esp + 0x4c0], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x409509
push dword [esp + 0x4ac]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x4c0], 7
mov dword [esp + 0x4bc], 0
mov word [esp + 0x4ac], ax
mov byte [esp + 0x580], 0xa
cmp dword [esp + 0x4a8], 8
jb 0x409547
push dword [esp + 0x494]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x4a8], 7
mov dword [esp + 0x4a4], 0
mov word [esp + 0x494], ax
mov byte [esp + 0x580], 3
cmp dword [esp + 0x490], 8
jb 0x409585
push dword [esp + 0x47c]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x490], 7
mov dword [esp + 0x48c], 0
mov word [esp + 0x47c], ax
push edi
lea ecx, [esp + 0x4e8]
call fcn.00408e90
mov byte [esp + 0x580], 0xd
cmp edi, esi
je 0x4095ca
push 0xffffffffffffffff
push 0
push esi
mov ecx, edi
call fcn.00402370
lea eax, [esi + 0x18]
lea ebx, [edi + 0x18]
cmp ebx, eax
je 0x4095e0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00402370
lea ecx, [edi + 0x30]
lea eax, [esi + 0x30]
mov dword [esp + 0x40], ecx
cmp ecx, eax
je 0x4095f8
push 0xffffffffffffffff
push 0
push eax
call fcn.00402370
mov eax, dword [esi + 0x48]
lea ecx, [edi + 0x48]
mov dword [ecx], eax
mov eax, dword [esi + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x1c], ecx
lea ecx, [edi + 0x50]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x20], ecx
lea ecx, [edi + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + 0x60]
mov dword [ecx], eax
mov al, byte [esi + 0x64]
mov dword [esp + 0x34], ecx
lea ecx, [edi + 0x64]
mov byte [ecx], al
cmp dword [esp + 0x4f8], 8
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x4e4]
cmovae ecx, dword [esp + 0x4e4]
cmp dword [edi + 0x14], 8
mov dword [esp + 0x24], eax
jb 0x40966e
mov edi, dword [edi]
mov esi, dword [esp + 0x4f4]
cmp eax, esi
mov edx, esi
cmovb edx, eax
test edx, edx
jne 0x409693
xor eax, eax
test eax, eax
jne 0x4096bb
mov ecx, dword [esp + 0x24]
cmp ecx, esi
jae 0x4096b2
or eax, 0xffffffff
jmp 0x4096b9
mov ax, word [edi]
cmp ax, word [ecx]
jne 0x4096a4
add edi, 2
add ecx, 2
dec edx
jmp 0x40967e
movzx eax, word [edi]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x409682
xor eax, eax
cmp ecx, esi
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x4097dc
cmp dword [esp + 0x510], 8
lea ecx, [esp + 0x4fc]
mov edi, dword [ebx + 0x10]
cmovae ecx, dword [esp + 0x4fc]
cmp dword [ebx + 0x14], 8
jb 0x4096ed
mov ebx, dword [ebx]
mov esi, dword [esp + 0x50c]
cmp edi, esi
mov edx, esi
cmovb edx, edi
test edx, edx
jne 0x409710
xor eax, eax
test eax, eax
jne 0x409738
cmp edi, esi
jae 0x40972f
or eax, 0xffffffff
jmp 0x409736
mov ax, word [ebx]
cmp ax, word [ecx]
jne 0x409721
add ebx, 2
add ecx, 2
dec edx
jmp 0x4096fd
movzx eax, word [ebx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x409701
xor eax, eax
cmp edi, esi
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x4097dc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x52c]
jne 0x4097dc
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x530]
jne 0x4097dc
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x534]
jne 0x4097dc
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x538]
jne 0x4097dc
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x53c]
jne 0x4097dc
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x540]
jne 0x4097dc
cmp dword [esp + 0x528], 8
lea eax, [esp + 0x514]
push dword [esp + 0x524]
mov ecx, dword [esp + 0x44]
cmovae eax, dword [esp + 0x518]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00402720
test eax, eax
jne 0x4097dc
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
cmp eax, dword [esp + 0x544]
je 0x4097e8
mov eax, dword [esp + 0x38]
mov byte [esp + 0x17], 1
mov byte [eax], 1
mov byte [esp + 0x580], 0xf
cmp dword [esp + 0x528], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40980c
push dword [esp + 0x514]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x528], 7
mov dword [esp + 0x524], 0
mov word [esp + 0x514], ax
mov byte [esp + 0x580], 0xe
cmp dword [esp + 0x510], 8
jb 0x40984a
push dword [esp + 0x4fc]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x510], 7
mov dword [esp + 0x50c], 0
mov word [esp + 0x4fc], ax
mov byte [esp + 0x580], 3
cmp dword [esp + 0x4f8], 8
jb 0x409888
push dword [esp + 0x4e4]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x4f8], 7
mov dword [esp + 0x4f4], 0
mov word [esp + 0x4e4], ax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
inc esi
mov dword [esp + 0x28], esi
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x409290
mov al, byte [esp + 0x17]
test al, al
je 0x409d42
mov eax, dword [esp + 0x42c]
cmp eax, dword [esp + 0x430]
je 0x409d42
xorps xmm0, xmm0
mov dword [esp + 0x448], 0
movq qword [esp + 0x440], xmm0
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 0x11
mov eax, 0x4ec4ec4f
mov ebx, dword [esp + 0x430]
mov ecx, ebx
mov edi, dword [esp + 0x42c]
sub ecx, edi
mov esi, dword [esp + 0x440]
imul ecx
mov ecx, dword [esp + 0x448]
sar edx, 5
sub ecx, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jae 0x4099ba
cmp ecx, 0x418937
jbe 0x409998
push str.vector_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
push ecx
lea ecx, [esp + 0x444]
call fcn.0040b510
mov edi, dword [esp + 0x42c]
mov esi, dword [esp + 0x440]
mov ebx, dword [esp + 0x430]
mov ecx, ebx
mov dword [esp + 0x24], 0
sub ecx, edi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409cf5
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + edi + 0x60]
lea ebx, [ecx + edi]
cmp eax, 1
je 0x4099fd
cmp eax, 2
je 0x4099fd
cmp eax, 3
jne 0x409cbf
push 0x280
xorps xmm0, xmm0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x414], xmm0
push 0
push eax
movlpd qword [esp + 0x424], xmm0
movlpd qword [esp + 0x42c], xmm0
mov dword [esp + 0x434], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c8]
push 0x100
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x3c8]
push 0x48
push 0
push eax
call sub.MSVCR120.dll_memset
mov edi, dword [esp + 0x450]
lea eax, [esp + 0x50]
add esp, 0xc
cmp eax, edi
jae 0x409ada
cmp esi, eax
ja 0x409ada
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
cmp edi, dword [esp + 0x448]
jne 0x409ac2
push 1
lea ecx, [esp + 0x444]
call fcn.0040b600
mov edi, dword [esp + 0x444]
mov esi, dword [esp + 0x440]
mov eax, dword [esp + 0x18]
imul eax, eax, 0x3e8
add eax, esi
mov byte [esp + 0x580], 0x12
test edi, edi
je 0x409b0f
mov esi, eax
jmp 0x409b08
cmp edi, dword [esp + 0x448]
jne 0x409af8
push 1
lea ecx, [esp + 0x444]
call fcn.0040b600
mov edi, dword [esp + 0x444]
mov byte [esp + 0x580], 0x13
test edi, edi
je 0x409b0f
lea esi, [esp + 0x44]
mov ecx, 0xfa
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x580], 0x11
mov eax, 0x10624dd3
mov edx, dword [esp + 0x444]
add edx, 0x3e8
mov dword [esp + 0x444], edx
mov ecx, dword [esp + 0x440]
sub edx, ecx
imul edx
lea edi, [ecx - 0x3e8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add edi, eax
push 0x280
push 0
mov dword [esp + 0x28], edi
lea esi, [edi + 4]
mov dword [edi], 0x23ab45db
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
add edi, 0x284
push 0x100
push 0
push edi
call sub.MSVCR120.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, 0x384
mov dword [esp + 0x28], eax
push 0x48
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebx + 0x10], 0x13f
ja 0x409bce
cmp dword [ebx + 0x14], 8
jb 0x409bb3
mov ecx, dword [ebx]
jmp 0x409bb5
mov ecx, ebx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x409bb5
mov esi, dword [sym.imp.MSVCR120.dll_wcsncpy]
jmp 0x409bec
cmp dword [ebx + 0x14], 8
jb 0x409bd8
mov eax, dword [ebx]
jmp 0x409bda
mov eax, ebx
push 0x13e
push eax
push esi
mov esi, dword [sym.imp.MSVCR120.dll_wcsncpy]
call esi
add esp, 0xc
cmp dword [ebx + 0x28], 0x7f
ja 0x409c13
cmp dword [ebx + 0x2c], 8
lea ecx, [ebx + 0x18]
jb 0x409c00
mov ecx, dword [ecx]
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x409c00
jmp 0x409c27
cmp dword [ebx + 0x2c], 8
lea eax, [ebx + 0x18]
jb 0x409c1e
mov eax, dword [eax]
push 0x7e
push eax
push edi
call esi
add esp, 0xc
cmp dword [ebx + 0x40], 0x23
ja 0x409c53
cmp dword [ebx + 0x44], 8
lea ecx, [ebx + 0x30]
jb 0x409c38
mov ecx, dword [ecx]
mov edx, dword [esp + 0x28]
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x409c40
jmp 0x409c6a
cmp dword [ebx + 0x44], 8
lea eax, [ebx + 0x30]
jb 0x409c5e
mov eax, dword [eax]
push 0x23
push eax
push dword [esp + 0x30]
call esi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x48]
mov dword [ecx + 0x3cc], eax
mov eax, dword [ebx + 0x4c]
mov dword [ecx + 0x3d0], eax
mov eax, dword [ebx + 0x50]
mov dword [ecx + 0x3d4], eax
mov eax, dword [ebx + 0x54]
mov dword [ecx + 0x3d8], eax
mov eax, dword [ebx + 0x58]
mov dword [ecx + 0x3dc], eax
mov eax, dword [ebx + 0x5c]
mov dword [ecx + 0x3e0], eax
mov eax, dword [ebx + 0x60]
mov dword [ecx + 0x3e4], eax
mov edi, dword [esp + 0x42c]
mov esi, dword [esp + 0x440]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
add ecx, 0x68
mov dword [esp + 0x1c], ecx
mov eax, 0x4ec4ec4f
mov ecx, dword [esp + 0x430]
inc ebx
sub ecx, edi
mov dword [esp + 0x24], ebx
imul ecx
mov ecx, dword [esp + 0x1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4099e3
cmp esi, dword [esp + 0x444]
jne 0x409e5b
mov byte [esp + 0x580], 3
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x440]
test eax, eax
je 0x409d42
push eax
call ebx
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov ecx, dword [esp + 0x42c]
test ecx, ecx
je 0x409d93
push dword [esp + 0x18]
push ecx
mov edx, dword [esp + 0x438]
call fcn.0040b780
push dword [esp + 0x434]
call ebx
add esp, 0xc
mov dword [esp + 0x42c], 0
mov dword [esp + 0x430], 0
mov dword [esp + 0x434], 0
mov byte [esp + 0x580], 1
cmp byte [esp + 0x16], 0
je 0x409dbc
mov eax, dword [esp + 0x438]
test eax, eax
je 0x409db4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x43c], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x438]
test eax, eax
je 0x409dec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x438], 0
mov word [esp + 0x43c], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x409e17
push dword [esp + 0x458]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x46c], 7
mov word [esp + 0x458], ax
mov dword [esp + 0x468], eax
xor al, al
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x560]
xor ecx, esp
call fcn.0040f90e
mov esp, ebp
pop ebp
ret 0xc
xorps xmm0, xmm0
mov dword [esp + 0x454], 0
movq qword [esp + 0x44c], xmm0
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 0x14
lea ecx, [esp + 0x550]
call fcn.0040cb80
mov ecx, dword [esp + 0x444]
mov eax, 0x10624dd3
mov esi, dword [esp + 0x440]
sub ecx, esi
imul ecx
lea ecx, [esp + 0x44c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push ecx
lea ecx, [esp + 0x554]
push eax
push esi
call fcn.0040cc20
test al, al
jne 0x409f35
mov byte [esp + 0x580], 0x11
mov eax, dword [esp + 0x44c]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x409f28
push eax
call ebx
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
jmp 0x409d10
mov eax, dword [esp + 0x44c]
cmp eax, dword [esp + 0x450]
je 0x409ee8
mov ebx, dword [esp + 0x30]
cmp dword [ebx + 0x14], 8
jb 0x409f53
mov ecx, dword [ebx]
jmp 0x409f55
mov ecx, ebx
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
call fcn.00402c50
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x409f7c
test esi, esi
jne 0x40a024
push 2
push ecx
push 0x4135a8
mov ecx, ebx
call fcn.00403920
cmp eax, 0xffffffff
je 0x40a024
push eax
push 0
lea eax, [esp + 0x558]
mov ecx, ebx
push eax
call fcn.004027a0
mov byte [esp + 0x580], 0x15
lea ecx, [esp + 0x550]
call fcn.00404440
cmp dword [ebx + 0x14], 8
jb 0x409fc2
mov ebx, dword [ebx]
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
mov ecx, ebx
call fcn.00402c50
add esp, 0x14
mov esi, eax
mov byte [esp + 0x580], 0x14
cmp dword [esp + 0x564], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40a002
push dword [esp + 0x550]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x564], 7
mov dword [esp + 0x560], 0
mov word [esp + 0x550], ax
jmp 0x40a02a
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp esi, 0xffffffff
je 0x40a323
test esi, esi
je 0x40a323
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x44c]
lea eax, [esp + 0x478]
push 0
push eax
mov eax, dword [esp + 0x458]
sub eax, ecx
mov dword [esp + 0x480], 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x450]
sub eax, dword [esp + 0x44c]
cmp dword [esp + 0x478], eax
jne 0x40a2b4
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x42c]
push eax
call fcn.00402fc0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40a103
xor edi, edi
mov eax, dword [esp + 0x2c]
lea edi, [edi + 0x68]
mov byte [esi + edi - 4], 0
inc ebx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40a0d4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x580], 0x11
cmp dword [esp + 0x44c], 0
je 0x40a157
lea ecx, [esp + 0x44c]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x44c]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call ebx
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
jmp 0x40a15d
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x580], 3
cmp dword [esp + 0x440], 0
je 0x40a1a9
lea ecx, [esp + 0x440]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x440]
call ebx
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
cmp dword [esp + 0x42c], 0
je 0x40a20d
lea ecx, [esp + 0x42c]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x18]
mov edx, dword [esp + 0x434]
push ecx
mov ecx, dword [esp + 0x434]
call fcn.0040b780
push dword [esp + 0x434]
call ebx
add esp, 0xc
mov dword [esp + 0x42c], 0
mov dword [esp + 0x430], 0
mov dword [esp + 0x434], 0
mov byte [esp + 0x580], 1
cmp byte [esp + 0x16], 0
je 0x40a236
mov eax, dword [esp + 0x438]
test eax, eax
je 0x40a22e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x43c], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x438]
test eax, eax
je 0x40a262
push eax
call edi
mov dword [esp + 0x438], 0
mov word [esp + 0x43c], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x40a28d
push dword [esp + 0x458]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x46c], 7
mov word [esp + 0x458], ax
mov al, 1
mov dword [esp + 0x468], 0
jmp 0x409e35
mov byte [esp + 0x580], 0x11
lea ecx, [esp + 0x44c]
call fcn.00402ed0
mov byte [esp + 0x580], 3
lea ecx, [esp + 0x440]
call fcn.00402ed0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x42c]
call fcn.0040b100
mov byte [esp + 0x580], 1
lea ecx, [esp + 0x470]
call fcn.004081b0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x438]
test eax, eax
je 0x409dec
push eax
call edi
jmp 0x409de1
mov byte [esp + 0x580], 0x11
cmp dword [esp + 0x44c], 0
je 0x40a377
lea ecx, [esp + 0x44c]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x44c]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
call ebx
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
jmp 0x40a37d
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov byte [esp + 0x580], 3
cmp dword [esp + 0x440], 0
je 0x40a3c9
lea ecx, [esp + 0x440]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x440]
call ebx
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
cmp dword [esp + 0x42c], 0
je 0x409d93
lea ecx, [esp + 0x42c]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x434]
jmp 0x409d5a