Function at 0x4132e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43717e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00415180
test eax, eax
jne 0x413318
push 0x5dc
jmp 0x413326
call fcn.0040f5f0
test eax, eax
je 0x41332c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x18
mov dword [ebp - 0x20], esi
call fcn.00420182
add esp, 4
cmp eax, esi
je 0x4137d1
mov dword [eax], eax
mov dword [ebp - 0x24], eax
mov dword [eax + 4], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], esi
call fcn.004121a0
lea ecx, [ebp - 0x24]
call fcn.00413c50
test eax, eax
je 0x41342d
mov edi, 1
push edi
call fcn.00406290
call fcn.004153d0
test byte [0x449000], 1
jne 0x4133a0
or dword [0x449000], edi
mov byte [ebp - 4], 1
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 0
push 0x449004
mov ecx, 0x4406e8
lea edx, [ebp - 0x10]
call fcn.00401ad0
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x44900c]
jne 0x4133c1
xor eax, eax
jmp 0x4133c4
mov eax, dword [eax + 0x10]
push eax
call fcn.0040ef50
add esp, 4
test byte [0x449080], 1
jne 0x4133fb
or dword [0x449080], edi
mov byte [ebp - 4], 2
call fcn.0041d990
push 0x437420
mov dword [0x44907c], eax
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 0
push 3
push 0x44907c
call fcn.00402f30
lea ebx, [ebp - 0x24]
call fcn.00412dc0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0041fcdf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x24]
push edx
call fcn.00413810
test eax, eax
jne 0x4134e6
call fcn.004153d0
test byte [0x449000], 1
jne 0x41346d
or dword [0x449000], 1
mov byte [ebp - 4], 3
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 0
push 0x449004
mov ecx, 0x4406e8
lea edx, [ebp - 0x10]
call fcn.00401ad0
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x44900c]
jne 0x41348e
xor eax, eax
jmp 0x413491
mov eax, dword [eax + 0x10]
push eax
call fcn.0040ef50
add esp, 4
test byte [0x449080], 1
jne 0x4134c9
or dword [0x449080], 1
mov byte [ebp - 4], 4
call fcn.0041d990
push 0x437420
mov dword [0x44907c], eax
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 0
push 2
push 0x44907c
call fcn.00402f30
lea ebx, [ebp - 0x24]
call fcn.00412dc0
mov eax, dword [ebp - 0x24]
push eax
jmp 0x413413
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
cmp edi, eax
jne 0x4135c3
lea edx, [ebp - 0x14]
push edx
call fcn.0040dc70
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.0040dd30
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 4
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41353e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00411bb0
call fcn.004153d0
test byte [0x449000], 1
jne 0x413595
or dword [0x449000], 1
mov byte [ebp - 4], 9
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 0
push 0x449004
mov ecx, 0x4406e8
lea edx, [ebp - 0x14]
call fcn.00401ad0
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x44900c]
jne 0x4137b4
xor eax, eax
jmp 0x4137b7
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
mov esi, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x4135f7
cmp eax, dword [esi - 0x10]
jne 0x4135f7
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41362f
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4137af
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
mov esi, dword [edi + 0x10]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x413662
cmp eax, dword [esi - 0x10]
jne 0x413662
lea ebx, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41369a
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4137af
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x14]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x4136cd
cmp eax, dword [esi - 0x10]
jne 0x4136cd
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x413705
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4137af
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00420016
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x40]
cmp eax, 4
ja case.default.0x413717
jmp dword [eax*4 + 0x4137f8]
lea ecx, [ebp - 0x40]
call fcn.00414a00
jmp case.default.0x413717
lea ecx, [ebp - 0x40]
call fcn.00414ae0
jmp case.default.0x413717
lea ecx, [ebp - 0x40]
call fcn.00414920
jmp case.default.0x413717
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41377f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41379e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x10], ecx
jne 0x4135c0
jmp 0x4134f3
call fcn.00402040
mov eax, dword [eax + 0x10]
push eax
call fcn.0040ef50
add esp, 4
call fcn.00412cf0
mov ecx, eax
call fcn.0040fe60
jmp 0x413407
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
call fcn.0042028a
push 0x4425bc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0042254a
lea ecx, [ecx]
push ds
aaa
inc ecx
add byte [eax], ch
aaa
inc ecx
add byte [edi + esi], bh
inc ecx
add byte [edx], dh
aaa
inc ecx
add byte [esi], bl
aaa
inc ecx
add ah, cl
int3