Function at 0x403240
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5317c9
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x58e3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x120], eax
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403296
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4032c9
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
call fcn.00407a71
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4032f9
push 0x80004005
call fcn.00401700
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x12c], edi
push str.C:SYSTEM.SAVUTILPININST.PPP
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
lea eax, [ebp - 0x124]
push 0x5421dc
push eax
mov byte [ebp - 4], 3
call fcn.00401350
push 0x5421d8
push eax
lea eax, [ebp - 0x11c]
push eax
mov byte [ebp - 4], 4
call fcn.00401280
add esp, 0x18
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.004011d0
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403382
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x124]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4033a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x542778
push str.C:SYSTEM.SAVUTILPININST.2PP
call fcn.00516912
mov esi, dword [ebp - 0x118]
add esp, 8
mov dword [ebp - 0x124], eax
test eax, eax
je 0x4033f6
push 0x54277c
push dword [ebp - 0x130]
call fcn.00516912
add esp, 8
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x4034a1
push dword [ebp - 0x124]
call fcn.00516698
add esp, 4
mov dword [ebp - 0x11c], 0
mov edx, dword [ebp - 0x130]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403424
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403444
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403461
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40347f
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517448
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051670f
add esp, 0xc
test eax, eax
je 0x4033f6
lea eax, [ebp - 0x114]
push eax
push 0x5421d4
push dword [ebp - 0x11c]
call fcn.00516927
lea ecx, [ebp - 0x114]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034e6
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00405390
lea eax, [ebp - 0x12c]
push eax
call fcn.00404cc0
xor eax, eax
add esp, 4
test esi, esi
setne al
test eax, eax
je 0x40328c
mov edi, dword [ebp - 0x12c]
push esi
push edi
call fcn.0051617f
add esp, 8
test eax, eax
jne 0x4034a1
mov esi, dword [ebp - 0x120]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jg 0x40354b
or eax, 0xffffffff
jmp 0x403561
push 0x7c
push eax
call fcn.005160cf
add esp, 8
test eax, eax
jne 0x40355f
or eax, 0xffffffff
jmp 0x403561
sub eax, dword [esi]
dec eax
push eax
push 0
lea eax, [ebp - 0x120]
push eax
mov ecx, esi
call fcn.00403190
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call fcn.004011d0
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4035a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jg 0x4035b6
or eax, 0xffffffff
jmp 0x4035cc
push 0x7c
push eax
call fcn.005160cf
add esp, 8
test eax, eax
jne 0x4035ca
or eax, 0xffffffff
jmp 0x4035cc
sub eax, dword [esi]
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
mov ecx, esi
call fcn.00403160
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.004011d0
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40360f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x118]
push eax
call fcn.00404cc0
add esp, 4
lea eax, [ebp - 0x120]
push 3
push eax
lea ecx, [ebp - 0x118]
call fcn.00402d40
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 8
call fcn.004011d0
mov edx, dword [ebp - 0x120]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403665
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x12c]
cmp dword [edi - 0xc], 0
jl 0x40374e
push 0x54221c
push edi
call fcn.00516378
add esp, 8
test eax, eax
je 0x40374e
sub eax, edi
cmp eax, 0xffffffff
je 0x40374e
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
jle 0x4037cf
push 0x7c
push esi
call fcn.005160cf
add esp, 8
test eax, eax
je 0x4037cf
sub eax, esi
cmp eax, 0xffffffff
je 0x4037cf
cmp dword [esi - 0xc], 0
jg 0x4036cf
or eax, 0xffffffff
jmp 0x4036e5
push 0x7c
push esi
call fcn.005160cf
add esp, 8
test eax, eax
jne 0x4036e3
or eax, 0xffffffff
jmp 0x4036e5
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
call fcn.00403160
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 9
call fcn.004011d0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 3
call fcn.004011b0
lea eax, [ebp - 0x118]
push eax
call fcn.00404cc0
add esp, 4
lea ecx, [ebp - 0x128]
push 0x7c
call fcn.00401420
mov esi, dword [ebp - 0x118]
lea ecx, [ebp - 0x128]
push dword [esi - 0xc]
push esi
call fcn.004015a0
jmp 0x4037cf
push 0x7c
lea ecx, [ebp - 0x128]
call fcn.00401420
mov esi, dword [ebp - 0x118]
cmp dword [esi - 0xc], 0
jg 0x40376c
or eax, 0xffffffff
jmp 0x403782
push 0x7c
push esi
call fcn.005160cf
add esp, 8
test eax, eax
jne 0x403780
or eax, 0xffffffff
jmp 0x403782
sub eax, esi
push eax
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x118]
call fcn.00403190
mov eax, dword [eax]
lea ecx, [ebp - 0x128]
push dword [eax - 0xc]
mov byte [ebp - 4], 0xa
push eax
call fcn.004015a0
mov edx, dword [ebp - 0x134]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x128]
push ebx
push 0x542780
push dword [ebp - 0x11c]
call fcn.00516927
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051670f
add esp, 0x18
test eax, eax
je 0x403847
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push eax
push 0x5421d4
push edi
call fcn.00516927
push esi
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051670f
add esp, 0x18
test eax, eax
jne 0x403810
mov esi, dword [ebp - 0x118]
mov edi, dword [ebp - 0x12c]
push dword [ebp - 0x124]
call fcn.00516698
push dword [ebp - 0x11c]
call fcn.00516698
add esp, 8
push 1
push str.C:SYSTEM.SAVUTILPININST.2PP
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x11c], 1
jmp 0x403400