Function at 0x50a554
Capabilities:
Check for time delay via gettickcount
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x26
push 0
push 0
dec ecx
jne 0x50a55c
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.004060c4
xor eax, eax
push ebp
push 0x50aed2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
add eax, 0x3bc
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x3b8]
call fcn.004060dc
lea eax, [ebp - 0x10]
call fcn.0041d3b0
test al, al
je 0x50a5f1
xor eax, eax
push ebp
push 0x50a5dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x70]
mov eax, 0x50aef0
call fcn.004c3040
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x10]
call fcn.0041ccb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a5f1
push 0x50af2c
push 0x50af64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004178b0
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x78]
mov cx, 0xc
mov edx, 1
call fcn.0041d42c
push 0
push 1
push ebp
lea eax, [ebp - 0x98]
mov dl, 1
call fcn.0041cb94
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x88]
mov eax, 0x50af84
call fcn.0050a2e0
pop ecx
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041d538
add esp, 0x10
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x14]
call fcn.0040e0d4
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.0040cb28
mov eax, dword [ebp - 0x9c]
mov edx, 0x50afa0
call fcn.00406890
jne 0x50a6c9
push 1
push 1
push ebp
lea ecx, [ebp - 0xb0]
mov edx, 0x50afb8
mov eax, 0x50afe8
call fcn.0050a184
pop ecx
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041d538
add esp, 0x10
jmp 0x50a728
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 0x14]
call fcn.0040e0d4
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040cb28
mov eax, dword [ebp - 0xb4]
mov edx, 0x50b00c
call fcn.00406890
jne 0x50a728
push 1
push 1
push ebp
lea ecx, [ebp - 0xc8]
mov edx, 0x50b024
mov eax, 0x50afe8
call fcn.0050a184
pop ecx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041d538
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
push 0
push 0x50b040
lea edx, [ebp - 0xd4]
mov eax, dword [ebp - 0x14]
call fcn.0050a4c8
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
mov edx, 0x50b05c
call fcn.004065c0
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0xcc]
call fcn.00406368
mov eax, dword [ebp - 0xcc]
push eax
push 0x50b070
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004178b0
add esp, 0x1c
lea eax, [ebp - 0x58]
push eax
xor eax, eax
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
mov cx, 0xc
mov edx, 1
call fcn.0041d42c
push 0
push 1
push ebp
lea ecx, [ebp - 0xe4]
mov edx, 0x50b098
mov eax, 0x50afe8
call fcn.0050a184
pop ecx
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041d538
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
push 0x50b05c
lea edx, [ebp - 0xf0]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x3bc]
call fcn.0050a4c8
push dword [ebp - 0xf0]
push 0x50b0c8
lea eax, [ebp - 0xec]
mov edx, 3
call fcn.004066a4
mov edx, dword [ebp - 0xec]
lea eax, [ebp - 0xe8]
call fcn.00406368
mov eax, dword [ebp - 0xe8]
push eax
push 0x50b0e4
lea eax, [ebp - 0x48]
push eax
push 0
call fcn.004178b0
add esp, 0x14
push 0xffffffffffffffff
push 0x50b0f4
lea eax, [ebp - 0x48]
push eax
push 0
call fcn.004178b0
add esp, 0x10
lea eax, [ebp - 0x48]
call fcn.0041dae8
lea eax, [ebp - 0x10]
call fcn.0041dae8
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0xc8
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x520340]
mov eax, dword [eax]
call fcn.00488604
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3b8]
lea eax, [ebp - 0xf4]
mov ecx, 0x50b0c8
call fcn.004065c0
mov eax, dword [ebp - 0xf4]
call fcn.0040d9a0
test al, al
jne 0x50a8b8
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x7d0
jbe 0x50a866
push 0xc8
call sub.kernel32.dll_Sleep_2
mov dl, 1
mov eax, dword [0x41f8e4]
call fcn.00424670
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.00406130
xor eax, eax
push ebp
push 0x50a920
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3bc]
lea eax, [ebp - 0xf8]
mov ecx, 0x50b0c8
call fcn.004065c0
mov edx, dword [ebp - 0xf8]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50a92a
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00406298
lea eax, [ebp - 0x1c]
xor edx, edx
call fcn.00406130
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50a963
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50a963
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
test eax, eax
je 0x50a96c
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jle 0x50a9ae
mov ebx, dword [ebp - 0x64]
test ebx, ebx
jle 0x50a9ae
mov esi, 1
cmp esi, 0x12c
jg 0x50a9ae
lea eax, [ebp - 0xfc]
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + esi*2 - 2]
call fcn.00406258
mov edx, dword [ebp - 0xfc]
lea eax, [ebp - 0x1c]
call fcn.00406500
inc esi
dec ebx
jne 0x50a981
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 0x1c]
call fcn.0040ca98
mov edx, dword [ebp - 0x100]
mov eax, 0x50b10c
call fcn.00406bb0
test eax, eax
jle 0x50aa74
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3bc]
lea eax, [ebp - 0x104]
mov ecx, 0x50b0c8
call fcn.004065c0
mov eax, dword [ebp - 0x104]
call fcn.005065c8
mov ebx, eax
call fcn.00415720
cmp ebx, eax
jne 0x50aa74
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
push ebp
push 0x50aa5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3bc]
lea eax, [ebp - 0x108]
mov ecx, 0x50b0c8
call fcn.004065c0
mov eax, dword [ebp - 0x108]
push eax
call fcn.00415830
mov ecx, eax
mov eax, dword [ebp - 0x5c]
pop edx
mov ebx, dword [eax]
call dword [ebx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50aa69
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x5c]
call fcn.0040426c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50aa99
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50aa99
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
test eax, eax
je 0x50aaa2
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x50ae07
mov byte [ebp - 0x69], 0
mov byte [ebp - 0x6a], 0
xor eax, eax
mov dword [ebp - 0x68], eax
mov dl, 1
mov eax, dword [0x41f8e4]
call fcn.00424670
mov dword [ebp - 0x60], eax
mov dl, 1
mov eax, dword [ebp - 0x60]
call fcn.0042445c
mov ebx, dword [ebp - 0x64]
test ebx, ebx
jle 0x50ade9
mov esi, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ab02
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50ab02
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
cmp word [eax + esi*2 - 2], 0x3c
jne 0x50abae
mov byte [ebp - 0x69], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ab2f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50ab2f
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
cmp word [eax + esi*2], 0x69
jne 0x50ab3a
mov al, 1
jmp 0x50ab5f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ab57
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50ab57
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
cmp word [eax + esi*2], 0x49
sete al
test al, al
je 0x50ade1
lea eax, [ebp - 0x110]
push eax
lea edx, [esi + 1]
mov ecx, 3
mov eax, dword [ebp - 0x18]
call fcn.00406898
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040cb28
mov eax, dword [ebp - 0x10c]
mov edx, 0x50b124
call fcn.00406890
jne 0x50ade1
mov byte [ebp - 0x6a], 1
jmp 0x50ade1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50abcb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50abcb
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
cmp word [eax + esi*2 - 2], 0x3e
jne 0x50abe0
mov byte [ebp - 0x69], 0
mov byte [ebp - 0x6a], 0
jmp 0x50ade1
movzx eax, byte [ebp - 0x6a]
and al, byte [ebp - 0x69]
je 0x50ade1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ac0a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50ac0a
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
cmp word [eax + esi*2 - 2], 0x20
jne 0x50ade1
lea eax, [ebp - 0x118]
push eax
lea edx, [esi + 1]
mov ecx, 4
mov eax, dword [ebp - 0x18]
call fcn.00406898
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.0040cb28
mov eax, dword [ebp - 0x114]
mov edx, 0x50b138
call fcn.00406890
jne 0x50ade1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50ac71
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x50ac71
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
movzx eax, word [eax + esi*2 + 8]
mov word [ebp - 0x6c], ax
lea edi, [esi + 6]
lea eax, [ebp - 0x24]
xor edx, edx
call fcn.00406130
jmp 0x50acab
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 0x18]
movzx edx, word [edx + edi*2 - 2]
call fcn.00406258
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x24]
call fcn.00406500
inc edi
cmp edi, dword [ebp - 0x64]
jge 0x50acc3
lea eax, [ebp - 0x18]
call fcn.004056e0
movzx eax, word [eax + edi*2 - 2]
cmp ax, word [ebp - 0x6c]
jne 0x50ac89
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0x24]
call fcn.0040cb28
mov edx, dword [ebp - 0x120]
mov eax, 0x50b150
call fcn.00406bb0
dec eax
je 0x50ade1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x50ade1
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x60]
call fcn.00422c74
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x24]
call fcn.0040e0d4
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x28]
call fcn.0040cb28
mov eax, dword [ebp - 0x28]
call fcn.005066d4
test al, al
je 0x50ade1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3bc]
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
call fcn.004065c0
mov eax, dword [ebp - 0x24]
call fcn.0040d9a0
test al, al
je 0x50ade1
inc dword [ebp - 0x68]
push 0x50b16c
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 0x68]
call fcn.0040d1b4
push dword [ebp - 0x128]
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004066a4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x3bc]
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 0x20]
call fcn.004065c0
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edi
mov eax, dword [ebp - 0x130]
call fcn.00406168
push eax
mov eax, dword [ebp - 0x24]
call fcn.00406168
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x20]
call fcn.00422c74
inc esi
dec ebx
jne 0x50aae5
mov eax, dword [ebp - 0x60]
call fcn.0040426c
mov edx, 0x506144
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax]
call dword [ecx + 0xa4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50aedc
lea eax, [ebp - 0x12c]
mov edx, 0x11
call fcn.004060d4
lea eax, [ebp - 0xe8]
call fcn.00405d24
lea eax, [ebp - 0xe4]
call fcn.004178a8
lea eax, [ebp - 0xd4]
mov edx, 2
call fcn.004060d4
lea eax, [ebp - 0xcc]
call fcn.00405d24
lea eax, [ebp - 0xc8]
call fcn.004178a8
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.004060d4
lea eax, [ebp - 0xb0]
call fcn.004178a8
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.004060d4
lea eax, [ebp - 0x98]
mov edx, dword [0x401108]
mov ecx, 2
call fcn.00406f8c
lea eax, [ebp - 0x70]
call fcn.0040856c
lea eax, [ebp - 0x58]
mov edx, dword [0x401108]
mov ecx, 3
call fcn.00406f8c
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.004060d4
lea eax, [ebp - 0x10]
call fcn.004178a8
ret