Function at 0x402968
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create thread
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45044f
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x463140]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xd4]
xor ebx, ebx
mov dword [edi + 0x138], ebx
mov dword [edi + 0x134], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402d90
call fcn.004021c4
test eax, eax
jne 0x402d90
mov eax, dword [edi + 0x124]
cmp eax, ebx
je 0x402a07
push dword [edi + 0x120]
push edi
push 1
call eax
add esp, 0xc
test eax, eax
jne 0x402a07
mov eax, dword [edi + 0x124]
mov dword [edi + 0x134], 4
cmp eax, ebx
je 0x402dae
push dword [edi + 0x120]
push edi
push 2
jmp 0x402da9
mov eax, dword [edi + 0xc8]
mov ecx, dword [edi + 0xc4]
push eax
push ecx
mov ecx, edi
call fcn.0040222a
test eax, eax
jne 0x402a40
mov eax, dword [edi + 0x124]
mov dword [edi + 0x134], 1
cmp eax, ebx
je 0x402dae
push dword [edi + 0x120]
jmp 0x4029ff
lea eax, [esp + 0x1c]
push str..itd
push eax
lea ecx, [edi + 0xd4]
call fcn.004038cf
pop ecx
pop ecx
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
mov dword [esp + 0x68], ebx
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [edi + 0xd8], esi
cmp esi, 0xffffffff
jne 0x402aa6
mov eax, dword [edi + 0x124]
push 2
pop ecx
mov dword [edi + 0x134], ecx
cmp eax, ebx
je 0x402d82
push dword [edi + 0x120]
push edi
push ecx
jmp 0x402d7d
mov eax, dword [edi + 0xe0]
mov edx, dword [edi + 0xe4]
push ebx
push dword [edi + 0xe0]
mov cl, 0x20
call fcn.0044bd00
push eax
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0xdc], eax
cmp eax, ebx
jne 0x402c80
mov dword [edi + 0x134], 3
jmp 0x402d6a
call fcn.004021c4
test eax, eax
jne 0x402c8e
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov dword [esp + 0x18], ebx
sar eax, 2
test eax, eax
je 0x402b97
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
add edx, esi
mov esi, dword [eax + 0x10]
adc ecx, ebx
cmp ecx, dword [eax + 0x14]
jg 0x402b37
jl 0x402b30
cmp edx, esi
jae 0x402b37
xor ecx, ecx
inc ecx
xor ebx, ebx
jmp 0x402b3b
xor ebx, ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [eax]
test eax, eax
je 0x402b81
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push 0x4032fe
push ebx
push ebx
mov dword [esp + 0x2c], ebx
call fcn.00439c30
add esp, 0x18
mov esi, eax
cmp dword [esp + 0x14], ebx
je 0x402b81
lea eax, [edi + 0xb4]
lea edx, [esp + 0x14]
call fcn.004039e4
mov ecx, dword [esp + 0x14]
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
sub eax, dword [edi]
inc dword [esp + 0x18]
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x402b09
mov ecx, edi
call fcn.004033b7
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004033b7
mov esi, eax
mov dword [esp + 0x40], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x40]
mov ecx, esi
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
sbb edx, dword [esp + 0x30]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
fild qword [esp + 0x34]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jns 0x402c00
fadd qword [0x45b598]
fdivp st(1)
fmul qword [0x45b590]
call fcn.0044b406
mov dword [edi + 0x140], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x124]
mov dword [edi + 0x144], edx
mov dword [esp + 0x2c], esi
cmp eax, ebx
je 0x402c45
push dword [edi + 0x120]
push edi
push 3
call eax
add esp, 0xc
lea esi, [edi + 0x98]
call fcn.0041d300
xor ecx, ecx
cmp dword [edi + 0xbc], ebx
lea eax, [edi + 0x98]
sete cl
mov esi, ecx
call fcn.0041d320
cmp esi, ebx
je 0x402bb0
mov ecx, dword [edi + 0x148]
test ecx, ecx
je 0x402c8e
mov dword [edi + 0x148], ebx
mov eax, dword [edi + 0x138]
test eax, eax
je 0x402ae8
push dword [edi + 0xdc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0xd8]
mov dword [edi + 0xdc], ebx
call esi
mov dword [edi + 0xd8], ebx
call fcn.004021c4
test eax, eax
je 0x402d47
lea eax, [esp + 0x24]
push str..itd
push eax
lea ecx, [edi + 0xd4]
call fcn.004038cf
pop ecx
pop ecx
mov byte [esp + 0x50], 1
push dword [edi + 0xd4]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x20]
push str..itd.cfg
push eax
lea ecx, [edi + 0xd4]
call fcn.004038cf
pop ecx
pop ecx
mov byte [esp + 0x50], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x124]
mov dword [edi + 0x134], ebx
cmp eax, ebx
je 0x402d2d
push dword [edi + 0x120]
push edi
push 4
call eax
add esp, 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.0040507e
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040507e
jmp 0x402d82
mov eax, dword [edi + 0x138]
test eax, eax
je 0x402d60
mov ecx, edi
call fcn.004033ee
mov dword [edi + 0x134], ebx
jmp 0x402d6a
mov dword [edi + 0x134], 4
mov eax, dword [edi + 0x124]
cmp eax, ebx
je 0x402d82
push dword [edi + 0x120]
push edi
push 2
call eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.0040507e
jmp 0x402dae
mov eax, dword [edi + 0x124]
mov dword [edi + 0x134], ebx
cmp eax, ebx
je 0x402dae
push dword [edi + 0x120]
push edi
push 4
call eax
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret