Function at 0x460c04
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405b4c
mov eax, dword [ebp - 8]
call fcn.0040547c
xor eax, eax
push ebp
push 0x461040
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [0x49bf64]
mov eax, dword [eax]
call eax
mov esi, eax
mov ebx, esi
mov eax, dword [ebp + 0xc]
call fcn.00404fdc
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 4]
call fcn.0040525c
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0045bb2c
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
call fcn.004058b0
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x38]
call fcn.0045faac
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.004059e8
je 0x460ce5
mov eax, dword [ebp - 0x38]
call fcn.004058d0
mov edx, eax
dec edx
lea eax, [ebp - 0x38]
call fcn.00405b08
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x49c090]
mov eax, dword [eax]
call eax
test eax, eax
je 0x460fe4
xor eax, eax
push ebp
push 0x460fdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x100000
mov eax, dword [ebp - 0x34]
inc eax
call fcn.00402a58
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x460fb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x44
call fcn.004035a4
mov dword [ebp - 0x88], 0x44
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x5c], 0x101
mov word [ebp - 0x58], 0
cmp dword [ebp - 8], 0
je 0x460dc1
push dword [ebp - 4]
push 0x461058
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 8]
call fcn.0045bee8
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
call fcn.004058b0
push dword [ebp - 0xa8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004059a0
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.004059e8
je 0x460dd9
mov eax, dword [ebp - 0x38]
call fcn.004058c0
mov edi, eax
jmp 0x460ddb
xor edi, edi
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
push edi
push 0
push 0x8000020
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
call fcn.004058c0
push eax
push 0
mov eax, dword [0x49c31c]
mov eax, dword [eax]
call eax
test eax, eax
je 0x460fa0
xor eax, eax
push ebp
push 0x460f99
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x12c
mov eax, dword [ebp - 0x98]
push eax
call sub.kernel32.dll_WaitForSingleObject_1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x49c344]
mov eax, dword [eax]
call eax
test eax, eax
je 0x460f33
cmp dword [ebp - 0x24], 0
jbe 0x460e85
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x49c3b4]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x460eba
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx], 0
lea eax, [ebp - 0xb0]
mov edx, dword [ebp - 0x1c]
call fcn.004051cc
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp + 0xc]
call fcn.0040529c
mov eax, dword [ebp + 0xc]
mov eax, dword [0x49bf64]
mov eax, dword [eax]
call eax
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x460f15
mov eax, ebx
sub eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
push eax
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x1c]
call fcn.004051cc
mov eax, dword [ebp - 0xb4]
push eax
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 4]
call fcn.0040525c
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 8]
pop ecx
call dword [ebp + 8]
test al, al
jne 0x460f15
mov dword [ebp - 0x28], 0x102
jmp 0x460f33
cmp dword [ebp - 0x28], 0x102
jne 0x460f33
mov eax, ebx
sub eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
cmp eax, dword [ebp - 0xc]
jle 0x460e2a
mov eax, dword [ebp - 0x28]
sub eax, 1
jb 0x460f44
sub eax, 0x101
je 0x460f56
jmp 0x460f66
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x98]
push eax
call sub.kernel32.dll_GetExitCodeProcess
jmp 0x460f66
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x98]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.user32.dll_OemToCharA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460fa0
mov eax, dword [ebp - 0x98]
push eax
call sub.kernel32.dll_CloseHandle_2
mov eax, dword [ebp - 0x94]
push eax
call sub.kernel32.dll_CloseHandle_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460fbd
mov eax, dword [ebp - 0x1c]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461047
lea eax, [ebp - 0xb8]
mov edx, 4
call fcn.00405000
lea eax, [ebp - 0xa8]
call fcn.004056cc
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.00405000
lea eax, [ebp - 0x9c]
call fcn.004056cc
lea eax, [ebp - 0x38]
call fcn.004056cc
lea eax, [ebp - 8]
call fcn.00404fdc
lea eax, [ebp - 4]
call fcn.004056cc
ret