Function at 0x491cc0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x11c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov esi, dword [esp + 0x128]
push esi
call fcn.0043d1a0
xor ebx, ebx
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x491d09
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004b6da3
add esp, 0x11c
ret
cmp dword [esp + 0x12c], 1
push ebp
push edi
jne 0x491eb5
mov edi, dword [0x5378cc]
mov ebp, dword [0x537890]
or edi, 0x100000
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp dword [0x537f30], ebx
je 0x491d85
cmp dword [0x537cf8], ebx
je 0x491d85
push 0xff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.004b6dc0
push ebx
push ebx
push edi
push ebp
lea ecx, [esp + 0x44]
push str.__lu__lu__lu__lu
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x4c]
push edx
push 0xc0c
call fcn.00413790
add esp, 0x2c
cmp byte [0x54a134], bl
je 0x491d9f
lea eax, [esp + 0x18]
push eax
push 4
push 2
push ebx
push 0x7d0
push esi
jmp 0x491db5
mov edx, dword [0x53ce94]
lea ecx, [esp + 0x18]
push ecx
push 4
push 2
push ebx
push 0x7d0
push edx
push 0x53cd88
push ebx
call 0x52d0b2
push eax
push 0x51fad4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
cmp byte [0x54a134], bl
jne 0x491e0f
push ebx
push ebx
push 0x51fac4
call fcn.00404690
add esp, 4
push eax
push ebx
push 0x7d0
push esi
push 0x51fab4
call fcn.004045b0
add esp, 4
push eax
push ebx
call 0x52d0b2
push ebx
push ebx
push 0x51faa0
call fcn.00404690
add esp, 4
push eax
push ebx
push 0x7d0
push esi
push 0x51fa90
call fcn.004045b0
add esp, 4
push eax
push ebx
call 0x52d0b2
push eax
push 0x51fa68
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov eax, dword [0x5378cc]
add esp, 0xc
mov dword [esp + 0x20], eax
cmp byte [0x54a134], bl
je 0x491e79
lea ecx, [esp + 0x18]
push ecx
push 4
push 2
push ebx
push 0x7d0
push esi
jmp 0x491e8e
mov eax, dword [0x53ce94]
lea edx, [esp + 0x18]
push edx
push 4
push 2
push ebx
push 0x7d0
push eax
push 0x53cd88
push ebx
call 0x52d0b2
push eax
push 0x51fa48
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
mov ebp, 0xfffffffb
push 0x51fa38
mov dword [esp + 0x1c], ebp
call fcn.00404690
add esp, 4
push eax
push ebx
push 0x7d0
push esi
push 0x51fa24
call fcn.004045b0
add esp, 4
push eax
push ebx
call 0x52d0b2
mov edx, dword [esp + 0x14]
push 0x7d0
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x491f3f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x10]
push edx
push edi
push 0x51f9fc
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
cmp dword [esp + 0x10], ebp
je 0x491f6b
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x491f6d
push esi
push 0x51f9e8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov bl, 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x128]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x11c
ret