Function at 0x407540
Capabilities:
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x4180bc]
xor eax, dword [esp + 0x114]
push ebx
mov dword [esp + 0x114], eax
xor ebx, ebx
call fcn.00405a50
test eax, eax
jge 0x40757a
push ebx
push 0x413324
call fcn.00407e90
add esp, 8
push 1
call fcn.00409932
call fcn.00406740
push 0
call fcn.004022b0
add esp, 4
test eax, eax
mov dword [0x418cec], eax
jne 0x40759e
call fcn.00405a60
push 1
call fcn.00409932
cmp dword [esp + 0x11c], 2
je 0x4075cd
push 0x4fee
call fcn.00407360
mov eax, dword [0x418cec]
add esp, 4
push eax
call dword [0x4130d8]
call fcn.00405a60
push 0x64
call fcn.00409932
push esi
push edi
call fcn.00402880
push 0x401cd0
call fcn.004027b0
mov edi, dword [esp + 0x12c]
mov ecx, dword [edi + 4]
push 0x413314
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00402a10
push 0xffffffffffffffff
push 0xc3
push 0x200
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.00403870
add esp, 0x24
test eax, eax
jl 0x40771c
push eax
call fcn.00403810
mov ecx, dword [edi + 4]
push 0x413304
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, 1
call fcn.00402a10
push 0xffffffffffffffff
push 0xc3
push 0
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.00403870
mov esi, eax
add esp, 0x24
test esi, esi
jge 0x4076a0
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.004027d0
mov edx, dword [edi + 4]
push 0x413314
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00402a10
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403c00
add esp, 0x18
call fcn.00402780
mov edx, dword [0x418cec]
push edx
call dword [0x4130d8]
call fcn.00405a60
push 0x64
call fcn.00409932
push 0xa
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00403ad0
add esp, 0xc
cmp eax, 0xa
je 0x407711
lea ecx, [esp + 0x18]
push ecx
push 0xffffd838
call fcn.004027d0
push esi
call fcn.00403810
lea edx, [esp + 0x24]
push edx
call fcn.00403c00
mov eax, dword [edi + 4]
push 0x413314
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402a10
lea edx, [esp + 0x34]
push edx
call fcn.00403c00
add esp, 0x20
call fcn.00402780
mov eax, dword [0x418cec]
push eax
call dword [0x4130d8]
call fcn.00405a60
push 0x64
call fcn.00409932
push esi
call fcn.00403810
add esp, 4
jmp 0x407732
mov ecx, dword [edi + 4]
push 0x413304
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402a10
add esp, 0xc
lea eax, [esp + 0x18]
push 3
push eax
call fcn.00403970
mov esi, eax
add esp, 8
test esi, esi
jge 0x4077a3
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.004027d0
add esp, 8
test ebx, ebx
je 0x407766
lea edx, [esp + 0x18]
push edx
call fcn.00403c00
add esp, 4
mov eax, dword [edi + 4]
push 0x413314
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00402a10
lea edx, [esp + 0x24]
push edx
call fcn.00403c00
add esp, 0x10
call fcn.00402780
mov eax, dword [0x418cec]
push eax
call dword [0x4130d8]
call fcn.00405a60
push 0x64
call fcn.00409932
push 1
push 0
push esi
call fcn.00403940
add esp, 0xc
test ebx, ebx
je 0x407871
test eax, eax
jge 0x4077c8
push 0x4fef
call fcn.00407360
jmp 0x40780d
push 0x4ff0
call fcn.00407360
add esp, 4
test eax, eax
jg 0x4077e6
push 0xffffd509
call fcn.004027d0
add esp, 4
push 0x4ff1
call fcn.00407360
add esp, 4
test eax, eax
jg 0x407803
push 0xffffd509
call fcn.004027d0
jmp 0x40780d
lea ecx, [esp + 0xc]
push ecx
call fcn.00401580
add esp, 4
push esi
call fcn.00403810
lea edx, [esp + 0x1c]
push edx
call fcn.00403c00
add esp, 8
test eax, eax
jge 0x407839
lea eax, [esp + 0x18]
push eax
push 0x4ff2
call fcn.00407360
add esp, 8
mov ecx, dword [edi + 4]
push 0x413314
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402a10
lea eax, [esp + 0x24]
push eax
call fcn.00403c00
add esp, 0x10
test eax, eax
jge 0x4078a6
lea ecx, [esp + 0x18]
push ecx
push 0x4ff2
call fcn.00407360
add esp, 8
jmp 0x4078a6
test eax, eax
jge 0x407886
push 0x4ff4
call fcn.00407360
push 0x4ff5
jmp 0x407895
push 0x4ff6
call fcn.00407360
push 0x4ff7
call fcn.00407360
add esp, 8
push esi
call fcn.00403810
add esp, 4
call fcn.00402780
mov edx, dword [0x418cec]
push edx
call dword [0x4130d8]
call fcn.00405a60
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor eax, eax
xor ecx, dword [esp + 0x118]
pop ebx
add esp, 0x114
jmp fcn.00407a79