Function at 0x606700
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x674478
push 0x4b9fb7
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
push ebx
push esi
push edi
mov eax, dword [0x6887a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
jmp 0x60677a
mov dword [ebp - 4], 1
mov dword [ebp - 0x74], 0
call fcn.004baa7f
mov ecx, dword [eax + 4]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0
push 0
mov edx, dword [ebp - 0x70]
push edx
push 0x2a21b24
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x6067d2
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x70]
jne 0x6067c5
mov dword [ebp - 0x6c], 1
jmp 0x6067d2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x60679a
cmp dword [0x2a21b14], 1
jne 0x6067e7
push 0x1f
call fcn.004b8f1d
add esp, 4
jmp 0x606832
cmp dword [0x2a21b14], 0
jne 0x606828
mov dword [0x2a21b14], 1
push 0x62b844
push 0x62b434
call fcn.004b938c
add esp, 8
test eax, eax
je 0x606826
mov dword [ebp - 0x80], 0xff
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x80]
jmp 0x606a0f
jmp 0x606832
mov dword [0x2a21714], 1
cmp dword [0x2a21b14], 1
jne 0x606857
push 0x62b330
push section..rdata
call fcn.004b53ef
add esp, 8
mov dword [0x2a21b14], 2
cmp dword [0x2a21b14], 2
je 0x606882
push str.__native_startup_state____initialized
push 0
push 0x203
push str.f:dd_vctoolscrt_bld_self_x86crt_srccrtexe.c
push 2
call dword [sym.imp.MSVCR80D.dll__CrtDbgReportW]
add esp, 0x14
cmp eax, 1
jne 0x606882
int3
cmp dword [ebp - 0x6c], 0
jne 0x606895
push 0
push 0x2a21b24
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x2a21b40], 0
je 0x6068bb
push 0x2a21b40
call fcn.004b67c7
add esp, 4
test eax, eax
je 0x6068bb
push 0
push 2
push 0
call dword [0x2a21b40]
push 1
call dword [sym.imp.MSVCR80D.dll__CrtSetCheckCount]
add esp, 4
mov edx, dword [sym.imp.MSVCR80D.dll__acmdln]
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
movzx edx, byte [ecx]
cmp edx, 0x20
jg 0x6068ec
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax]
test ecx, ecx
je 0x606931
cmp dword [ebp - 0x68], 0
je 0x606931
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx]
cmp eax, 0x22
jne 0x606903
xor ecx, ecx
cmp dword [ebp - 0x68], 0
sete cl
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx]
push eax
call dword [sym.imp.MSVCR80D.dll__ismbblead]
add esp, 4
test eax, eax
je 0x606926
cmp dword [ebp - 0x64], 0
je 0x606926
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x6068d1
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax]
test ecx, ecx
je 0x606951
mov edx, dword [ebp - 0x64]
movzx eax, byte [edx]
cmp eax, 0x20
jg 0x606951
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x606931
mov edx, dword [ebp - 0x34]
and edx, 1
je 0x606965
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x84], eax
jmp 0x60696f
mov dword [ebp - 0x84], 0xa
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 0
push 0x400000
call fcn.004b3e69
mov dword [0x2a21710], eax
cmp dword [0x2a21704], 0
jne 0x6069a0
mov eax, dword [0x2a21710]
push eax
call dword [sym.imp.MSVCR80D.dll_exit]
cmp dword [0x2a21714], 0
jne 0x6069af
call dword [sym.imp.MSVCR80D.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
jmp 0x606a0a
mov eax, dword [0x2a21710]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret