Function at 0x4ebe40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4ebe48
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
lea eax, [ebp - 4]
call fcn.004059e0
xor eax, eax
push ebp
push 0x4ec468
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f716c
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x4ec3a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ec2d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [0x4f1c18]
mov eax, dword [eax]
call fcn.0045db9c
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 0x20]
call fcn.00409424
cmp dword [ebp - 0x15c], 0
jne 0x4ebee2
push pe_nt_image_headers32
lea eax, [ebp - 0x158]
push eax
mov eax, dword [0x4f47f8]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x158]
mov ecx, pe_nt_image_headers32
call fcn.00404fa0
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x20]
call fcn.00409e58
push dword [ebp - 0x160]
push 0x4ec484
push 0x4ec490
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004050c4
mov eax, dword [ebp - 0x14]
call fcn.00409c80
test al, al
jne 0x4ebf21
mov eax, dword [ebp - 0x14]
call fcn.00409ca4
call fcn.0040c0c4
fstp qword [ebp - 0x40]
wait
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x24]
mov edx, 0x4ec49c
call fcn.0040ccc4
push dword [ebp - 0x14]
push 0x4ec484
push 0x4ec4b0
push dword [ebp - 0x24]
push 0x4ec4bc
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004050c4
mov eax, dword [ebp - 0x18]
call fcn.00409c5c
test al, al
je 0x4ebf81
push 0x42
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x41bbe4]
call fcn.00420d20
mov dword [ebp - 0x34], eax
jmp 0x4ebf98
push 0xffff
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x41bbe4]
call fcn.00420d20
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4ebfad
cmp eax, 0xa00000
jb 0x4ec022
jmp 0x4ebfaf
jl 0x4ec022
cmp dword [ebp - 0x34], 0
je 0x4ebfbd
lea eax, [ebp - 0x34]
call fcn.0040fd4c
call fcn.0040c0c4
fstp qword [ebp - 0x48]
wait
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
mov edx, 0x4ec4cc
call fcn.0040ccc4
movzx eax, byte [0x4ec4d4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x164]
mov ecx, 0x4ec4e0
mov edx, dword [ebp - 0x28]
call fcn.00405048
mov ecx, dword [ebp - 0x164]
mov edx, 0x4ec4bc
mov eax, dword [ebp - 0x18]
call fcn.0040f2f4
mov eax, dword [ebp - 0x1c]
call fcn.004051c0
push eax
mov eax, dword [ebp - 0x18]
call fcn.004051c0
push eax
call sub.kernel32.dll_MoveFileA
cmp dword [ebp - 0x34], 0
jne 0x4ec061
mov eax, dword [ebp - 0x18]
call fcn.00409c5c
test al, al
je 0x4ec04a
push 0x42
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x41bbe4]
call fcn.00420d20
mov dword [ebp - 0x34], eax
jmp 0x4ec061
push 0xffff
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x41bbe4]
call fcn.00420d20
mov dword [ebp - 0x34], eax
push 0
push 0
mov dl, 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x18]
call fcn.0040c0c4
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
mov edx, 0x4ec4f0
call fcn.0040ccc4
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x17c]
mov ecx, 0x4ec510
mov edx, dword [ebp - 0x2c]
call fcn.00405048
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
call fcn.004056a8
push dword [ebp - 0x178]
push dword [ebp - 4]
push 0x4ec518
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004057a4
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0xf
lea edx, [ebp - 0x170]
xor ecx, ecx
mov eax, 0x4ec524
call fcn.0040b200
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x10]
call fcn.00406e24
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4ec113
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x10]
call fcn.00405220
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [0x4ea964]
call fcn.004eb5d4
lea ecx, [ebp - 8]
mov edx, 0x4ec534
call fcn.004eb5f4
cmp dword [ebp - 8], 0
jne 0x4ec186
lea eax, [ebp - 0x180]
push eax
mov eax, 0x4ec548
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0xb
lea edx, [ebp - 0x170]
xor ecx, ecx
mov eax, 0x4ec574
call fcn.0040aadc
mov ecx, dword [ebp - 0x180]
mov dl, 1
mov eax, dword [0x408300]
call fcn.0040de94
call fcn.00404688
mov eax, dword [0x4ea964]
call fcn.004eb5d4
lea ecx, [ebp - 0xc]
mov edx, 0x4ec580
call fcn.004eb5f4
cmp dword [ebp - 0xc], 0
jne 0x4ec1e5
lea eax, [ebp - 0x184]
push eax
mov eax, 0x4ec598
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x16c], 0xb
lea edx, [ebp - 0x170]
xor ecx, ecx
mov eax, 0x4ec574
call fcn.0040aadc
mov ecx, dword [ebp - 0x184]
mov dl, 1
mov eax, dword [0x408300]
call fcn.0040de94
call fcn.00404688
xor ecx, ecx
mov dl, 1
mov eax, dword [0x484d20]
call fcn.00471e84
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x4ec2c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x188]
call fcn.00404fb8
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x58]
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x194]
lea eax, [ebp - 0x190]
call fcn.00404fb8
mov eax, dword [ebp - 0x190]
call fcn.00409898
mov edx, eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov dl, 1
mov eax, dword [ebp - 0x38]
call fcn.00479f20
lea eax, [ebp - 0x19c]
mov ecx, 0x4ec5c0
mov edx, dword [ebp - 4]
call fcn.00405734
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
call fcn.00404fb8
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x38]
call fcn.0048535c
xor edx, edx
mov eax, dword [ebp - 0x38]
call fcn.00479f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec2c8
mov eax, dword [ebp - 0x38]
call fcn.00403d50
ret