Function at 0x402e30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475364
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x499694]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push 0x24
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2c8], edi
call fcn.0040f44d
mov esi, eax
add esp, 4
mov dword [ebp - 0x290], esi
cmp esi, edi
je 0x40375a
mov dword [esi], esi
mov dword [ebp - 0x2cc], esi
mov dword [esi + 4], esi
mov dword [ebp - 4], edi
push 0x24
mov dword [ebp - 0x2bc], edi
call fcn.0040f44d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2a0], ebx
cmp ebx, edi
je 0x403727
mov dword [ebx], ebx
mov dword [ebp - 0x2c0], ebx
mov dword [ebx + 4], ebx
push 0x208
lea edx, [ebp - 0x21c]
push edi
push edx
mov byte [ebp - 4], 1
call fcn.00419530
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x21c]
push 0x5c
push ecx
call fcn.0040f4cd
add esp, 8
cmp eax, edi
je 0x402f0e
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402f17
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x49c530
call fcn.00401540
lea ecx, [ebp - 0x2ac]
call fcn.0040e860
mov byte [ebp - 4], 2
mov dword [ebp - 0x298], 0x2f
mov edi, 0x49e2fc
mov dword [ebp - 0x294], 0
xor ecx, ecx
push 0xffffffffffffffff
push ecx
lea edx, [edi - 0x1c]
mov word [ebp - 0x270], cx
push edx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
call fcn.004013e0
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.004013e0
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 4
call fcn.00403b70
cmp eax, 0xffffffff
je 0x4030a3
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00403a70
mov esi, eax
lea ecx, [ebp - 0x238]
cmp ecx, esi
je 0x403081
cmp dword [ebp - 0x224], 8
jb 0x403022
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040f3f1
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], cx
cmp dword [esi + 0x14], 8
jae 0x40305f
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.0040ee60
add esp, 0xc
xor eax, eax
jmp 0x403069
mov ecx, dword [esi]
mov dword [ebp - 0x238], ecx
mov dword [esi], eax
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x228], edx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x224], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x278], 8
jb 0x40309d
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0040f3f1
add esp, 4
mov esi, dword [ebp - 0x290]
xor eax, eax
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.004013e0
push 1
push 0x48b778
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 6
call fcn.00402af0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x254]
call fcn.004029e0
lea ecx, [ebp - 0x254]
call fcn.0040b2d0
cmp dword [edi + 0x1c], 1
jne 0x40313f
mov eax, dword [esi + 4]
lea edx, [ebp - 0x254]
push edx
push eax
push esi
call fcn.00403ea0
mov ecx, 0x9249248
sub ecx, dword [ebp - 0x2c8]
cmp ecx, 1
jb 0x403350
inc dword [ebp - 0x2c8]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x254]
push edx
push eax
push ebx
call fcn.00403ea0
mov ecx, 0x9249248
sub ecx, dword [ebp - 0x2bc]
cmp ecx, 1
jb 0x403350
inc dword [ebp - 0x2bc]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [ebp - 0x240], 8
jb 0x40318a
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040f3f1
add esp, 4
xor eax, eax
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x4031bf
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040f3f1
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], 8
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
jb 0x4031f8
mov eax, dword [ebp - 0x270]
push eax
call fcn.0040f3f1
add esp, 4
mov eax, dword [ebp - 0x294]
add eax, 0x40
add edi, 0x40
mov dword [ebp - 0x294], eax
cmp eax, 0xa00
jb 0x402f60
mov edi, dword [ebp - 0x290]
mov esi, dword [edi]
cmp esi, edi
je 0x40322f
lea ecx, [esi + 8]
call fcn.0040aba0
mov esi, dword [esi]
cmp esi, edi
jne 0x403221
mov eax, dword [ebx]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], eax
cmp eax, ebx
je 0x4035a7
mov dword [ebp - 0x2b4], 0x5c
mov ebx, dword [ebp - 0x294]
push 0xffffffffffffffff
xor esi, esi
xor ecx, ecx
push esi
add ebx, 8
mov word [ebp - 0x254], cx
mov edi, 7
push ebx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], esi
call fcn.004013e0
push 0xffffffffffffffff
mov byte [ebp - 4], 7
push esi
xor edx, edx
push ebx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], dx
call fcn.004013e0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.00403b70
mov edi, eax
cmp edi, 0xffffffff
je 0x403450
push 0xffffffffffffffff
lea ecx, [edi + 1]
push ecx
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x254]
call fcn.00403a70
mov esi, eax
lea eax, [ebp - 0x254]
cmp eax, esi
je 0x40337c
cmp dword [ebp - 0x240], 8
jb 0x403314
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0040f3f1
add esp, 4
xor eax, eax
xor edx, edx
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], eax
mov word [ebp - 0x254], dx
cmp dword [esi + 0x14], 8
jae 0x40335a
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x254]
push esi
push ecx
call fcn.0040ee60
add esp, 0xc
xor eax, eax
jmp 0x403364
push str.list_T__too_long
call fcn.0040d3b3
mov edx, dword [esi]
mov dword [ebp - 0x254], edx
mov dword [esi], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x244], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x240], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x278], 8
jb 0x403398
mov eax, dword [ebp - 0x28c]
push eax
call fcn.0040f3f1
add esp, 4
push edi
push 0
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00403a70
mov esi, eax
lea edx, [ebp - 0x238]
mov edi, 8
cmp edx, esi
je 0x403433
cmp dword [ebp - 0x224], edi
jb 0x4033d5
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040f3f1
add esp, 4
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], cx
cmp dword [esi + 0x14], edi
jae 0x403411
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.0040ee60
add esp, 0xc
xor eax, eax
jmp 0x40341b
mov ecx, dword [esi]
mov dword [ebp - 0x238], ecx
mov dword [esi], eax
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x228], edx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x224], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x278], edi
jb 0x403455
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0040f3f1
add esp, 4
jmp 0x403455
mov edi, 8
mov esi, dword [ebp - 0x244]
mov edx, esi
cmp esi, 2
jb 0x403467
mov edx, 2
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0x240], edi
jae 0x40347b
lea ecx, [ebp - 0x254]
mov eax, 0x48b77c
test edx, edx
je 0x40349a
mov di, word [ecx]
cmp di, word [eax]
jne 0x4034a4
add ecx, 2
add eax, 2
dec edx
jne 0x403484
mov edi, 8
cmp esi, 2
jae 0x4034b3
or eax, 0xffffffff
jmp 0x4034bb
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x403495
mov edi, 8
jmp 0x4034bb
xor eax, eax
cmp esi, 2
setne al
test eax, eax
sete al
test al, al
je 0x4034d2
lea edx, [ebp - 0x238]
push edx
call fcn.00403790
jmp 0x4034e4
cmp dword [ebx + 0x14], edi
jb 0x4034db
mov eax, dword [ebx]
jmp 0x4034dd
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x298]
xor edx, edx
div dword [ebp - 0x2bc]
mov dword [ebp - 0x29c], eax
fild dword [ebp - 0x29c]
test eax, eax
jns 0x403508
fadd dword [0x48bfd0]
mov eax, dword [ebp - 0x2a4]
fstp dword [ebp - 0x29c]
cmp dword [eax + 0x10], 0
je 0x40363a
mov ecx, dword [eax + 0x10]
fld dword [ebp - 0x29c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ecx
fstp dword [esp]
call edx
inc dword [ebp - 0x298]
cmp dword [ebp - 0x224], edi
jb 0x40354f
mov eax, dword [ebp - 0x238]
push eax
call fcn.0040f3f1
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], cx
cmp dword [ebp - 0x240], edi
jb 0x403587
mov edx, dword [ebp - 0x254]
push edx
call fcn.0040f3f1
add esp, 4
mov eax, dword [ebp - 0x294]
mov eax, dword [eax]
mov dword [ebp - 0x294], eax
cmp eax, dword [ebp - 0x2a0]
jne 0x403253
mov ebx, dword [ebp - 0x2a0]
mov edx, dword [0x49c530]
mov edi, 8
cmp dword [0x49c544], edi
jae 0x4035bf
mov edx, 0x49c530
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
mov word [ebp - 0x270], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035e1
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x270]
call fcn.00401540
mov ecx, dword [ebp - 0x2b0]
lea edx, [ebp - 0x270]
push edx
mov byte [ebp - 4], 0xb
call fcn.00403860
mov byte [ebp - 4], 2
cmp dword [ebp - 0x25c], edi
jb 0x40362e
mov eax, dword [ebp - 0x270]
push eax
call fcn.0040f3f1
add esp, 4
mov eax, dword [ebp - 0x2a4]
cmp dword [eax + 0x10], 0
jne 0x40363f
call fcn.0040d479
mov ecx, dword [eax + 0x10]
fld1
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ecx
fstp dword [esp]
call eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 1
call fcn.0040e870
mov esi, dword [ebx]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp esi, ebx
je 0x4036a7
lea esp, [esp]
cmp dword [esi + 0x1c], 8
mov edi, dword [esi]
jb 0x403684
mov ecx, dword [esi + 8]
push ecx
call fcn.0040f3f1
add esp, 4
xor edx, edx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], dx
call fcn.0040f3f1
add esp, 4
mov esi, edi
cmp edi, ebx
jne 0x403670
push ebx
call fcn.0040f3f1
mov eax, dword [ebp - 0x290]
mov esi, dword [eax]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
cmp esi, eax
je 0x4036fa
mov ebx, eax
cmp dword [esi + 0x1c], 8
mov edi, dword [esi]
jb 0x4036d7
mov eax, dword [esi + 8]
push eax
call fcn.0040f3f1
add esp, 4
xor ecx, ecx
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
push esi
mov word [esi + 8], cx
call fcn.0040f3f1
add esp, 4
mov esi, edi
cmp edi, ebx
jne 0x4036c3
mov edx, dword [ebp - 0x290]
push edx
call fcn.0040f3f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ecc7
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2a8], edi
call fcn.0040ed6f
push 0x4940d0
lea ecx, [ebp - 0x2d8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0041134b
lea edx, [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x29c], edi
call fcn.0040ed6f
push 0x4940d0
lea eax, [ebp - 0x2e4]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0041134b
int3