Function at 0x462590
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x515ceb
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 ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
cmp dword [ecx + 0x10], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], eax
je 0x4637c3
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
cmp edi, edx
je 0x4637c3
sub edx, edi
mov eax, 0x4ec4ec4f
imul edx
xor ecx, ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x4637c3
xor eax, eax
lea esp, [esp]
cmp byte [eax + edi + 0x64], 0
jne 0x462634
inc ecx
add eax, 0x68
cmp ecx, esi
jb 0x462620
jmp 0x4637c3
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x458]
push esi
push eax
call fcn.00463fa0
mov dword [esp + 0x580], 0
xorps xmm0, xmm0
movq qword [esp + 0x42c], xmm0
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov byte [esp + 0x580], 1
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0x430]
call fcn.00433550
xorps xmm0, xmm0
lea eax, [esp + 0x42c]
movq qword [esp + 0x470], xmm0
mov dword [esp + 0x470], eax
mov eax, dword [esp + 0x42c]
mov byte [esp + 0x474], 0
test eax, eax
jne 0x4626bf
xor al, al
jmp 0x4626e1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4626d7
cmp eax, 0x80
je 0x4626d7
xor al, al
jmp 0x4626e1
mov byte [esp + 0x430], 1
mov al, 1
mov byte [esp + 0x12], al
mov byte [esp + 0x474], al
mov byte [esp + 0x580], 2
xorps xmm0, xmm0
movq qword [esp + 0x434], xmm0
mov dword [esp + 0x43c], 0
mov dword [esp + 0x434], 0
mov dword [esp + 0x438], 0
mov dword [esp + 0x43c], 0
mov byte [esp + 0x580], 3
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x438]
mov byte [esp + 0x17], 0
push eax
push esi
call fcn.00463a30
test al, al
jne 0x462769
cmp byte [esp + 0x13], al
je 0x462769
cmp dword [esi + 0x14], 8
jb 0x462760
mov eax, dword [esi]
jmp 0x462762
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + 4]
xor al, al
mov esi, dword [ebx]
xor edi, edi
mov byte [esp + 0x13], al
sub ecx, esi
mov eax, 0x4ec4ec4f
mov dword [esp + 0x1c], edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4636c1
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea esp, [esp]
cmp byte [ecx + esi + 0x64], 0
lea ebx, [ecx + esi]
je 0x462c34
mov esi, dword [esp + 0x438]
mov eax, 0x4ec4ec4f
mov ecx, esi
xor edi, edi
sub ecx, dword [esp + 0x434]
imul ecx
mov dword [esp + 0x14], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
je 0x462826
mov esi, dword [esp + 0x434]
cmp dword [ebx + 0x14], 8
jb 0x4627ec
mov ecx, dword [ebx]
jmp 0x4627ee
mov ecx, ebx
cmp dword [esi + 0x14], 8
jb 0x4627f8
mov eax, dword [esi]
jmp 0x4627fa
mov eax, esi
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x46281d
mov eax, dword [esp + 0x14]
add esi, 0x68
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jb 0x4627e2
jmp 0x46281f
mov edi, esi
mov esi, dword [esp + 0x438]
test edi, edi
jne 0x4629d6
xor eax, eax
mov dword [esp + 0x4ac], edi
mov dword [esp + 0x4b0], edi
mov dword [esp + 0x4b0], 7
mov dword [esp + 0x4ac], edi
mov word [esp + 0x49c], ax
mov byte [esp + 0x580], 4
mov dword [esp + 0x4c4], eax
mov dword [esp + 0x4c8], eax
mov dword [esp + 0x4c8], 7
mov dword [esp + 0x4c4], eax
mov word [esp + 0x4b4], ax
mov byte [esp + 0x580], 5
mov dword [esp + 0x4dc], eax
mov dword [esp + 0x4e0], eax
mov dword [esp + 0x4e0], 7
mov dword [esp + 0x4dc], eax
mov word [esp + 0x4cc], ax
mov byte [esp + 0x580], 6
xorps xmm0, xmm0
movlpd qword [esp + 0x4e4], xmm0
movlpd qword [esp + 0x4ec], xmm0
movlpd qword [esp + 0x4f4], xmm0
mov dword [esp + 0x4fc], eax
mov byte [esp + 0x500], al
mov byte [esp + 0x580], 7
lea eax, [esp + 0x49c]
cmp eax, esi
jae 0x462954
mov ecx, eax
mov eax, dword [esp + 0x434]
cmp eax, ecx
ja 0x462954
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [esp + 0x43c]
jne 0x46293c
push ecx
lea ecx, [esp + 0x438]
call fcn.00464cc0
mov esi, dword [esp + 0x438]
imul eax, edi, 0x68
add eax, dword [esp + 0x434]
mov byte [esp + 0x580], 8
test esi, esi
je 0x46298c
jmp 0x462984
cmp esi, dword [esp + 0x43c]
jne 0x462971
push ecx
lea ecx, [esp + 0x438]
call fcn.00464cc0
mov esi, dword [esp + 0x438]
mov byte [esp + 0x580], 9
test esi, esi
je 0x46298c
lea eax, [esp + 0x49c]
push eax
mov ecx, esi
call fcn.004623a0
mov byte [esp + 0x580], 7
add esi, 0x68
mov dword [esp + 0x438], esi
mov ecx, esi
mov esi, dword [esp + 0x434]
mov eax, 0x4ec4ec4f
sub ecx, esi
imul ecx
lea edi, [esi - 0x68]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x68
add edi, eax
mov byte [esp + 0x580], 3
lea ecx, [esp + 0x49c]
call fcn.004622e0
push edi
lea ecx, [esp + 0x508]
call fcn.004623a0
mov byte [esp + 0x580], 0xa
cmp edi, ebx
je 0x4629fb
push 0xffffffffffffffff
push 0
push ebx
mov ecx, edi
call fcn.00404c30
lea eax, [ebx + 0x18]
lea esi, [edi + 0x18]
cmp esi, eax
je 0x462a11
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404c30
lea ecx, [edi + 0x30]
lea eax, [ebx + 0x30]
mov dword [esp + 0x30], ecx
cmp ecx, eax
je 0x462a29
push 0xffffffffffffffff
push 0
push eax
call fcn.00404c30
mov eax, dword [ebx + 0x48]
lea ecx, [edi + 0x48]
mov dword [ecx], eax
mov eax, dword [ebx + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x14], ecx
lea ecx, [edi + 0x50]
mov dword [edi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x40], ecx
lea ecx, [edi + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x38], ecx
lea ecx, [edi + 0x60]
mov dword [ecx], eax
mov al, byte [ebx + 0x64]
mov dword [esp + 0x2c], ecx
lea ecx, [edi + 0x64]
mov byte [ecx], al
cmp dword [esp + 0x518], 8
mov eax, dword [edi + 0x10]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x504]
cmovae ecx, dword [esp + 0x504]
cmp dword [edi + 0x14], 8
mov dword [esp + 0x24], eax
jb 0x462a9f
mov edi, dword [edi]
mov ebx, dword [esp + 0x514]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
test edx, edx
jne 0x462ac4
xor eax, eax
test eax, eax
jne 0x462aec
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jae 0x462ae3
or eax, 0xffffffff
jmp 0x462aea
mov ax, word [edi]
cmp ax, word [ecx]
jne 0x462ad5
add edi, 2
add ecx, 2
dec edx
jmp 0x462aaf
movzx eax, word [edi]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x462ab3
xor eax, eax
cmp ecx, ebx
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x462c0c
cmp dword [esp + 0x530], 8
lea ecx, [esp + 0x51c]
mov ebx, dword [esi + 0x10]
cmovae ecx, dword [esp + 0x51c]
cmp dword [esi + 0x14], 8
jb 0x462b1e
mov esi, dword [esi]
mov edi, dword [esp + 0x52c]
cmp ebx, edi
mov edx, edi
cmovb edx, ebx
test edx, edx
jne 0x462b40
xor eax, eax
test eax, eax
jne 0x462b68
cmp ebx, edi
jae 0x462b5f
or eax, 0xffffffff
jmp 0x462b66
mov ax, word [esi]
cmp ax, word [ecx]
jne 0x462b51
add esi, 2
add ecx, 2
dec edx
jmp 0x462b2e
movzx eax, word [esi]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x462b32
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
jne 0x462c0c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x54c]
jne 0x462c0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x550]
jne 0x462c0c
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x554]
jne 0x462c0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x558]
jne 0x462c0c
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, dword [esp + 0x55c]
jne 0x462c0c
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x560]
jne 0x462c0c
cmp dword [esp + 0x548], 8
lea eax, [esp + 0x534]
push dword [esp + 0x544]
mov ecx, dword [esp + 0x34]
cmovae eax, dword [esp + 0x538]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00408000
test eax, eax
jne 0x462c0c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [esp + 0x564]
je 0x462c18
mov eax, dword [esp + 0x34]
mov byte [esp + 0x13], 1
mov byte [eax], 1
mov byte [esp + 0x580], 3
lea ecx, [esp + 0x504]
call fcn.004622e0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add ecx, 0x68
mov dword [esp + 0x18], ecx
inc edi
mov dword [esp + 0x1c], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4627a0
mov al, byte [esp + 0x13]
mov ebx, dword [esp + 0x438]
test al, al
mov eax, dword [esp + 0x434]
je 0x4636cf
cmp eax, ebx
je 0x4636cf
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], 0xb
mov ecx, ebx
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [esp + 0x448]
mov eax, 0x10624dd3
sub ecx, dword [esp + 0x440]
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov dword [esp + 0x18], esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jae 0x462d26
cmp esi, 0x418937
jbe 0x462d19
push 0x535478
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
push esi
lea ecx, [esp + 0x444]
call fcn.00464ec0
test esi, esi
je 0x462f0d
mov edi, dword [esp + 0x434]
add edi, 0x44
mov eax, dword [edi + 0x1c]
cmp eax, 1
je 0x462d4e
cmp eax, 2
je 0x462d4e
cmp eax, 3
jne 0x462ef8
lea ecx, [esp + 0x44]
call fcn.004616b0
push eax
lea ecx, [esp + 0x444]
call fcn.004648d0
mov esi, dword [esp + 0x440]
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x444]
sub ecx, esi
imul ecx
lea ebx, [esi - 0x3e8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
add ebx, eax
push 0x280
push 0
mov dword [esp + 0x1c], ebx
lea esi, [ebx + 4]
mov dword [ebx], 0x23ab45db
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
add ebx, 0x284
push 0x100
push 0
push ebx
call sub.MSVCR120.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, 0x384
mov dword [esp + 0x1c], eax
push 0x48
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [edi - 0x34], 0x13f
ja 0x462e10
cmp dword [edi - 0x30], 8
jb 0x462df4
mov ecx, dword [edi - 0x44]
jmp 0x462df7
lea ecx, [edi - 0x44]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x462df7
mov esi, dword [sym.imp.MSVCR120.dll_wcsncpy]
jmp 0x462e30
cmp dword [edi - 0x30], 8
jb 0x462e1b
mov eax, dword [edi - 0x44]
jmp 0x462e1e
lea eax, [edi - 0x44]
push 0x13e
push eax
push esi
mov esi, dword [sym.imp.MSVCR120.dll_wcsncpy]
call esi
add esp, 0xc
cmp dword [edi - 0x1c], 0x7f
ja 0x462e57
cmp dword [edi - 0x18], 8
jb 0x462e41
mov ecx, dword [edi - 0x2c]
jmp 0x462e44
lea ecx, [edi - 0x2c]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ebx], ax
lea ebx, [ebx + 2]
test ax, ax
jne 0x462e44
jmp 0x462e6e
cmp dword [edi - 0x18], 8
jb 0x462e62
mov eax, dword [edi - 0x2c]
jmp 0x462e65
lea eax, [edi - 0x2c]
push 0x7e
push eax
push ebx
call esi
add esp, 0xc
cmp dword [edi - 4], 0x23
ja 0x462e98
cmp dword [edi], 8
jb 0x462e7e
mov ecx, dword [edi - 0x14]
jmp 0x462e81
lea ecx, [edi - 0x14]
mov edx, dword [esp + 0x1c]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x462e85
jmp 0x462eb1
cmp dword [edi], 8
jb 0x462ea2
mov eax, dword [edi - 0x14]
jmp 0x462ea5
lea eax, [edi - 0x14]
push 0x23
push eax
push dword [esp + 0x24]
call esi
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x18]
mov dword [ecx + 0x3cc], eax
mov eax, dword [edi + 8]
mov dword [ecx + 0x3d0], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x3d4], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x3d8], eax
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x3dc], eax
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x3e0], eax
mov eax, dword [edi + 0x1c]
mov dword [ecx + 0x3e4], eax
add edi, 0x68
dec esi
mov dword [esp + 0x18], esi
jne 0x462d38
mov ebx, dword [esp + 0x438]
mov eax, dword [esp + 0x440]
cmp eax, dword [esp + 0x444]
jne 0x462f90
mov byte [esp + 0x580], 3
mov eax, dword [esp + 0x440]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x462f5d
push eax
call edi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov eax, dword [esp + 0x434]
test eax, eax
je 0x463723
mov esi, eax
mov ecx, esi
call fcn.004622e0
add esi, 0x68
cmp esi, ebx
jne 0x462f76
push dword [esp + 0x434]
jmp 0x4636fd
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], 0xc
lea ecx, [esp + 0x47c]
call fcn.00471a70
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 + 0x480]
push eax
push esi
call fcn.00471b20
test al, al
jne 0x4630ce
mov byte [esp + 0x580], 0xb
mov eax, dword [esp + 0x44c]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x463061
push eax
call edi
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov eax, dword [esp + 0x440]
test eax, eax
je 0x46309b
push eax
call edi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov eax, dword [esp + 0x434]
test eax, eax
je 0x463723
mov esi, eax
mov ecx, esi
call fcn.004622e0
add esi, 0x68
cmp esi, ebx
jne 0x4630b4
push dword [esp + 0x434]
jmp 0x4636fd
mov eax, dword [esp + 0x44c]
cmp eax, dword [esp + 0x450]
jne 0x46318f
mov byte [esp + 0x580], 0xb
mov eax, dword [esp + 0x44c]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x463122
push eax
call edi
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov eax, dword [esp + 0x440]
test eax, eax
je 0x46315c
push eax
call edi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
mov eax, dword [esp + 0x434]
test eax, eax
je 0x463723
mov esi, eax
mov ecx, esi
call fcn.004622e0
add esi, 0x68
cmp esi, ebx
jne 0x463175
push dword [esp + 0x434]
jmp 0x4636fd
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 8
jb 0x46319d
mov ecx, dword [eax]
jmp 0x46319f
mov ecx, eax
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
call fcn.00436a60
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x4631cc
test edi, edi
jne 0x463272
push 2
push ecx
mov ecx, dword [esp + 0x28]
push 0x535be0
call fcn.004233d0
cmp eax, 0xffffffff
je 0x463272
mov edi, dword [esp + 0x20]
mov ecx, edi
push eax
push 0
lea eax, [esp + 0x484]
push eax
call fcn.004231b0
mov byte [esp + 0x580], 0xd
lea ecx, [esp + 0x47c]
call fcn.0042da20
cmp dword [edi + 0x14], 8
jb 0x463218
mov edi, dword [edi]
push ecx
push 0x80
push 4
push ecx
push 0
mov edx, 0x40000000
mov ecx, edi
call fcn.00436a60
add esp, 0x14
mov edi, eax
mov byte [esp + 0x580], 0xc
cmp dword [esp + 0x490], 8
jb 0x463252
push dword [esp + 0x47c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x490], 7
mov dword [esp + 0x48c], 0
mov word [esp + 0x47c], ax
cmp edi, 0xffffffff
je 0x4635e2
test edi, edi
je 0x4635e2
push 0
push 0
push 0
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [esp + 0x450]
sub eax, dword [esp + 0x44c]
cmp dword [esp + 0x478], eax
jne 0x4634b0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x434]
cmp edx, eax
je 0x46332b
mov eax, dword [edx]
mov ecx, dword [esp + 0x434]
mov dword [edx], ecx
mov ecx, dword [esp + 0x43c]
mov dword [esp + 0x434], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], ebx
mov dword [esp + 0x438], eax
mov eax, dword [edx + 8]
mov dword [edx + 8], ecx
mov dword [esp + 0x43c], eax
mov ecx, dword [edx + 4]
mov eax, 0x4ec4ec4f
sub ecx, dword [edx]
xor ebx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x463381
mov esi, dword [esp + 0x28]
xor edi, edi
jmp 0x463350
mov eax, dword [esi]
lea edi, [edi + 0x68]
inc ebx
mov byte [eax + edi - 4], 0
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x463350
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x580], 0xb
mov eax, dword [esp + 0x44c]
test eax, eax
je 0x4633bb
push eax
call esi
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov eax, dword [esp + 0x440]
test eax, eax
je 0x4633f5
push eax
call esi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.00464670
mov byte [esp + 0x580], 1
cmp byte [esp + 0x12], 0
je 0x463432
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x46342a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x46345e
push eax
call edi
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x463489
push dword [esp + 0x458]
call esi
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 0x4637c5
mov byte [esp + 0x580], 0xb
cmp dword [esp + 0x44c], 0
je 0x4634fc
lea ecx, [esp + 0x44c]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x44c]
call esi
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
cmp dword [esp + 0x440], 0
je 0x463548
lea ecx, [esp + 0x440]
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
push dword [esp + 0x440]
call esi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.00464670
mov byte [esp + 0x580], 1
cmp byte [esp + 0x12], 0
je 0x463585
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x46357d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x4635b1
push eax
call edi
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x4637a7
push dword [esp + 0x458]
call esi
jmp 0x4637a4
mov byte [esp + 0x580], 0xb
mov eax, dword [esp + 0x44c]
test eax, eax
je 0x46361c
push eax
call esi
add esp, 4
mov dword [esp + 0x44c], 0
mov dword [esp + 0x450], 0
mov dword [esp + 0x454], 0
mov byte [esp + 0x580], 3
mov eax, dword [esp + 0x440]
test eax, eax
je 0x463656
push eax
call esi
add esp, 4
mov dword [esp + 0x440], 0
mov dword [esp + 0x444], 0
mov dword [esp + 0x448], 0
mov byte [esp + 0x580], 2
lea ecx, [esp + 0x434]
call fcn.00464670
mov byte [esp + 0x580], 1
cmp byte [esp + 0x12], 0
je 0x463693
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x46368b
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x4635b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4635a6
mov ebx, dword [esp + 0x438]
mov eax, dword [esp + 0x434]
mov byte [esp + 0x580], 2
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x463723
mov esi, eax
cmp eax, ebx
je 0x4636fc
mov ecx, esi
call fcn.004622e0
add esi, 0x68
cmp esi, ebx
jne 0x4636e7
mov eax, dword [esp + 0x434]
push eax
call edi
add esp, 4
mov dword [esp + 0x43c], 0
mov dword [esp + 0x438], 0
mov dword [esp + 0x434], 0
mov byte [esp + 0x580], 1
cmp byte [esp + 0x12], 0
je 0x46374c
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x463744
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x430], 0
mov dword [esp + 0x470], 0
mov byte [esp + 0x580], 0
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x46377c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x42c], 0
mov word [esp + 0x430], 0
mov dword [esp + 0x580], 0xffffffff
cmp dword [esp + 0x46c], 8
jb 0x4637a7
push dword [esp + 0x458]
call edi
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.00505b1e
mov esp, ebp
pop ebp
ret 0xc