Function at 0x5105f4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5105fc
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x510f6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + 0x184], 0
je 0x51063d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x184]
call fcn.0040a2cc
test al, al
jne 0x510657
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x238
mov edx, 0x510f84
call fcn.0040523c
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x248]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x24c]
push eax
push 0
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x244]
mov dl, 1
mov eax, dword [0x4f0cc4]
call fcn.004f169c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
call fcn.004f2db8
test al, al
je 0x5106ba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x510fc0
call fcn.00511784
jmp 0x5106ca
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x510fe4
call fcn.00511784
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
call fcn.004042c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x511004
call fcn.00511784
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x24c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax + 0x248]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x244]
call fcn.004f116c
test al, al
jne 0x510747
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x238
mov edx, 0x511024
call fcn.004054f8
jmp 0x510f4f
call fcn.004ed11c
test al, al
je 0x5107b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ffc94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x51077e
mov eax, dword [ebp - 0x10]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x51079a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x20
mov edx, 0x511040
call fcn.004054b4
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x20
mov edx, 0x51104c
call fcn.004054b4
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x248]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x24c]
push eax
push 0
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x244]
mov dl, 1
mov eax, dword [0x4f0cc4]
call fcn.004f169c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 4]
call fcn.004f15f0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x4f0bf4]
call fcn.004f1894
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + 0x184]
push 0x511070
push 0x511084
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x1c]
call fcn.0040a2a8
test al, al
jne 0x5108ee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + 0x184]
push 0x511070
push 0x511094
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x20]
call fcn.0040a2a8
test al, al
je 0x5108ee
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + 0x184]
push 0x511070
push 0x511084
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x24]
call fcn.004056ac
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + 0x184]
push 0x511070
push 0x511094
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x28]
call fcn.004056ac
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + 0x184]
push 0x511070
push 0x511084
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x2c]
call fcn.0040a2a8
test al, al
je 0x510e20
xor eax, eax
push ebp
push 0x510de0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004fd770
mov byte [ebp - 2], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5110a4
call fcn.00511784
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0050a3ac
test al, al
jne 0x510974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
lea ecx, [ebp - 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x198]
mov edx, 0x5110c4
call fcn.004860d8
mov eax, dword [ebp - 0x30]
mov edx, 0x5110f0
call fcn.004055f8
jne 0x5109c4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov byte [eax + 0x19], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x20
mov edx, 0x5110fc
call fcn.0040523c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0050e540
test al, al
jne 0x5109e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
cmp byte [ebp - 2], 0
je 0x510a6c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x51111c
call fcn.00511784
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ff838
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004fd770
test al, al
je 0x510a6c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x5111bc
call fcn.00511784
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x238
mov edx, 0x5111f4
call fcn.0040523c
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov byte [eax + 0x258], 1
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511f3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004fd278
test al, al
jne 0x510a93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x48
call fcn.004da2b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ffb78
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.005095a8
test al, al
jne 0x510ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
call fcn.00509928
test al, al
jne 0x510af1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00509cc4
test al, al
jne 0x510b18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
call fcn.00509928
test al, al
jne 0x510b41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x510bed
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ffc94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x510b90
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x510bac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x20
mov edx, 0x511040
call fcn.004054b4
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x20
mov edx, 0x51122c
call fcn.004054b4
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
call fcn.00509928
test al, al
jne 0x510be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
jmp 0x510bf8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0050698c
test al, al
jne 0x510c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00502ed4
test al, al
jne 0x510c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.005066e0
test al, al
jne 0x510c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x510cb3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
xor edx, edx
call fcn.00509928
test al, al
jne 0x510c87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x510ca6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dl, 1
call fcn.00509928
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
jmp 0x510cbe
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511a28
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x510d41
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
add eax, 0x1c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0xc]
call fcn.0040523c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], 2
push 0x511248
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
call fcn.00409cec
push dword [ebp - 0x38]
push 0x511274
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
push dword [eax + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040556c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511784
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004fdb34
test al, al
jne 0x510d72
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
add eax, 0x238
mov edx, 0x511288
call fcn.0040523c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp byte [eax + 0x258], 0
jne 0x510d8c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004feb40
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ff838
test al, al
jne 0x510dc8
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 0
jne 0x510dc8
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ff838
test al, al
jne 0x510dc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510e99
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 0
jne 0x510eb5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004fdd84
test al, al
je 0x510f4f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
call fcn.004f2308
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511644
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004ffc24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511964
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 0
jne 0x510f3b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + 0x23c], 0
je 0x510f3b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x23c]
lea eax, [ebp - 0x3c]
mov edx, 0x5112c8
call fcn.004054f8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00511784
jmp 0x510f4b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 0x511318
call fcn.00511784
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510f71
lea eax, [ebp - 0x3c]
mov edx, 9
call fcn.0040520c
ret