Function at 0x47a120
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0xa37210]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0x340], 0
je 0x47a439
push esi
mov ecx, 0x7812a8
call fcn.004755c0
mov ecx, 0x6c6df4
call fcn.0043d560
push dword [0xa653c4]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [0xa653c8]
call esi
push 0
push dword [0xa653c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x47a248
mov eax, dword [0xa653c4]
test eax, eax
je 0x47a196
push eax
call esi
lea eax, [ebp - 0x217]
mov word [ebp - 0x23f], 0x5000
push str.Kill_Handle
push eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x23d], 8
call fcn.0057cecc
mov eax, dword [0xa6a654]
add eax, 0x12d
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0057cecc
mov eax, dword [0xa6a654]
add esp, 0x10
mov ecx, 0xa653d0
mov eax, dword [eax + 0x125]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x17]
push eax
call fcn.004761c0
push 0x23b
lea eax, [ebp - 0x240]
mov ecx, 0x84e4e0
push eax
call fcn.004fbc10
mov ecx, 0x84e4e0
call fcn.004fb980
push 0x230
mov ecx, 0xa59940
call fcn.004489d0
push eax
push 1
push 0xfce
push 0x80f0c0
call fcn.004bd410
add esp, 0x10
push 0
push dword [0xa653c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47a31c
mov eax, dword [0xa653c8]
test eax, eax
je 0x47a26a
push eax
call esi
lea eax, [ebp - 0x217]
mov word [ebp - 0x23f], 0x5000
push str.Kill_GameCheck
push eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x23d], 8
call fcn.0057cecc
mov eax, dword [0xa6a654]
add eax, 0x12d
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0057cecc
mov eax, dword [0xa6a654]
add esp, 0x10
mov ecx, 0xa653d0
mov eax, dword [eax + 0x125]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x17]
push eax
call fcn.004761c0
push 0x23b
lea eax, [ebp - 0x240]
mov ecx, 0x84e4e0
push eax
call fcn.004fbc10
mov ecx, 0x84e4e0
call fcn.004fb980
push 0x230
mov ecx, 0xa59940
call fcn.004489d0
push eax
push 1
push 0xfce
push 0x80f0c0
call fcn.004bd410
add esp, 0x10
call fcn.0042de90
mov ecx, eax
call fcn.0042bdd0
mov ecx, dword [0xa6a654]
pop esi
test ecx, ecx
je 0x47a362
cmp dword [0xa6b9ac], 0
jne 0x47a362
cmp dword [edi + 8], 0
jne 0x47a362
call fcn.0049be70
test eax, eax
jne 0x47a357
call fcn.0042de90
mov ecx, eax
call fcn.0042be10
mov ecx, dword [edi + 0x114]
call fcn.004fe0c0
mov ecx, dword [edi + 0x2d8]
cmp dword [ecx + 0x8ae], 0
je 0x47a376
call fcn.00471b20
mov ecx, dword [edi + 0x2e0]
call fcn.004572f0
cmp dword [0xa59798], 0
mov ecx, 0xa58ed8
jne 0x47a396
call fcn.0043eb10
jmp 0x47a39b
call fcn.0043ea30
mov ecx, 0x7756bc
call fcn.00471800
mov ecx, 0x7c0bec
call fcn.00497a80
mov ecx, 0xa66da8
call fcn.004d9890
mov ecx, dword [edi + 0x1d8]
call fcn.0054f080
mov ecx, dword [edi + 0x1d8]
call fcn.0054f130
mov ecx, dword [edi + 0x1fc]
call fcn.00487960
mov ecx, dword [edi + 0x210]
call fcn.00442c00
mov ecx, dword [edi + 0x21c]
call fcn.0054da30
mov ecx, dword [edi + 0x220]
call fcn.0054db40
mov ecx, edi
call fcn.0047a450
mov ecx, edi
call fcn.0047a4d0
mov ecx, 0x8c9310
call fcn.005221f0
mov ecx, dword [0xa65474]
call fcn.00496600
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x47a42a
call fcn.005205e0
mov ecx, dword [edi + 0x30c]
test ecx, ecx
je 0x47a439
call fcn.004e9fe0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0057b964
mov esp, ebp
pop ebp
ret