Function at 0x457060
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc38e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x34], eax
xor bl, bl
call fcn.00429720
or esi, 0xffffffff
cmp byte [eax + 0x1c], bl
je 0x45719b
call fcn.00429720
test byte [eax + 0x20], 4
je 0x45719b
call fcn.00429720
mov dword [ebp - 0x2c], eax
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x25
push str.Waiting_for_commands._File_map_name:
call fcn.00402420
mov edx, dword [edi + 0xc]
test edx, edx
je 0x45711d
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457103
sub ecx, dword [ebp - 0x30]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00402420
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
push 0
push 0x4df9a0
call fcn.00402420
push ecx
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00429a60
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45717a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45719b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
push dword [edi + 4]
call esi
cmp eax, 0x102
jne 0x4571ea
nop
test bl, bl
jne 0x4571c8
mov ecx, edi
call fcn.00458bc0
test al, al
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x34]
cmp eax, 0xea60
ja 0x4575ca
push 0xa
push dword [edi + 4]
call esi
cmp eax, 0x102
je 0x4571b0
test eax, eax
jne 0x4575bc
mov esi, dword [edi]
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x20]
push esi
call fcn.00403470
test al, al
jne 0x457249
test esi, esi
jne 0x45722a
xor ecx, ecx
jmp 0x45723f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457230
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.004035e0
mov dword [ebp - 4], 0xb
mov esi, dword [edi]
add esi, 0x820
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1c]
push esi
call fcn.00403470
test al, al
jne 0x4572a9
test esi, esi
jne 0x45728b
xor ecx, ecx
jmp 0x45729f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457290
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.004035e0
mov byte [ebp - 4], 0xd
mov esi, dword [edi]
add esi, 0x1040
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x18]
push esi
call fcn.00403470
test al, al
jne 0x457309
test esi, esi
jne 0x4572e8
xor ecx, ecx
jmp 0x4572ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4572f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.004035e0
mov byte [ebp - 4], 0xf
mov esi, dword [edi]
add esi, 0x1860
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x14]
push esi
call fcn.00403470
test al, al
jne 0x457369
test esi, esi
jne 0x457348
xor ecx, ecx
jmp 0x45735f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457350
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov byte [ebp - 4], 0x11
xor ebx, ebx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x30], ebx
test ecx, ecx
je 0x457392
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax]
mov ebx, eax
mov dword [ebp - 0x30], eax
call fcn.00429720
cmp byte [eax + 0x1c], 0
je 0x45751a
call fcn.00429720
test byte [eax + 0x20], 4
je 0x45751a
call fcn.00429720
mov dword [ebp - 0x34], eax
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x10]
push 8
push str.Command
call fcn.00402420
mov esi, dword [edi]
mov byte [ebp - 4], 0x15
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x15
lea eax, [esi + 0x1860]
push eax
lea eax, [esi + 0x1040]
mov dword [ebp - 0x28], 1
push eax
lea eax, [esi + 0x820]
push eax
push esi
lea eax, [ebp - 0x2c]
push str._s___s_____s_____s__
push eax
call fcn.00408700
mov esi, dword [ebp - 0x2c]
add esp, 0x18
test esi, esi
je 0x45745c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457443
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00402420
push str._executed._Return_code:
lea ecx, [ebp - 0x10]
call fcn.0040d0f0
push ebx
lea ecx, [ebp - 0x10]
call fcn.004291e0
mov ebx, eax
call fcn.004043d0
test eax, eax
je 0x4575e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x24]
push 0
push 0x4df9a0
call fcn.00402420
push ecx
push ebx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x24]
push eax
call fcn.00429a60
mov byte [ebp - 4], 0x15
or ebx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4574d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov dword [ebp - 0x28], eax
and eax, 0xfffffffe
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x14
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4574fa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45751d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45751d
or ebx, 0xffffffff
mov eax, dword [edi]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x2080], ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45754f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45756d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45758b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4575d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ecx + 0x2080], eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402570
int3