Function at 0x408a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51534d
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1b4]
mov dword [esp + 0x20], 3
xor ebx, ebx
lea esp, [esp]
cmp dword [0x54d2ec], ebx
je 0x408c86
cmp byte [0x54cf18], bl
je 0x408c86
mov ecx, dword [0x54cf20]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x408af3
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 4
jne 0x408c86
cmp byte [0x54d310], bl
jne 0x408c3b
push 0x658
call fcn.004e7d83
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1ac], ebx
je 0x408b26
mov esi, eax
call fcn.00496d30
mov esi, eax
jmp 0x408b28
xor esi, esi
mov dword [esp + 0x1ac], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 0x170]
push 0x54d2d8
mov ecx, esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x244]
push esi
mov ecx, ebp
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x128]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck
call fcn.0047dd40
mov edi, 1
mov dword [esp + 0x1ac], edi
cmp dword [esp + 0x58], ebx
je 0x408b95
cmp dword [esp + 0x5c], 8
mov ecx, dword [esp + 0x48]
jae 0x408b8f
lea ecx, [esp + 0x48]
push esi
call fcn.00493060
mov edx, dword [esi]
mov eax, dword [edx + 0x2d8]
push edi
mov ecx, esi
call eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], esi
mov byte [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], 1
call fcn.00409820
sub dword [esp + 0x20], edi
call fcn.00426150
test eax, eax
je 0x408bd8
cmp dword [0x54d280], ebx
mov eax, 0x54cfc8
jne 0x408bdd
mov eax, 0x54d2d8
mov edx, dword [eax + 0x2c0]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
call fcn.00428470
add esp, 4
call fcn.00428590
mov byte [eax], 1
mov dword [esp + 0x1ac], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x408c25
mov edx, dword [esp + 0x48]
push edx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jmp 0x408e2b
call fcn.00426150
test eax, eax
je 0x408c51
cmp dword [0x54d280], ebx
mov eax, 0x54cfc8
jne 0x408c56
mov eax, 0x54d2d8
mov eax, dword [eax + 0x2c0]
lea ecx, [esp + 0x18]
push ecx
push ecx
lea edx, [esp + 0x24]
mov edi, 1
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call fcn.00428470
add esp, 4
call fcn.00428590
mov byte [eax], 1
jmp 0x408c8b
mov edi, 1
mov esi, dword [0x54cf1c]
lea eax, [esp + 0x7c]
call fcn.00407fb0
lea eax, [esp + 0x7c]
push eax
mov eax, esi
mov dword [esp + 0x1b0], 2
call fcn.004259c0
add esp, 4
test al, al
je 0x408e37
push 0x658
call fcn.004e7d83
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov byte [esp + 0x1ac], 3
je 0x408d24
push esi
call fcn.004ab320
mov dword [esi], vtable.GameMgr::GMOption.0
mov byte [esi + 0x62c], bl
mov dword [esi + 0x630], ebx
mov byte [esi + 0x634], bl
mov byte [esi + 0x635], bl
mov dword [esi + 0x650], 7
mov dword [esi + 0x64c], ebx
mov word [esi + 0x63c], bx
mov byte [esi + 0x654], bl
mov byte [esi + 0x655], bl
jmp 0x408d26
xor esi, esi
mov byte [esp + 0x1ac], 2
mov edx, dword [esi]
mov edx, dword [edx + 0x170]
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x244]
push esi
mov ecx, ebp
call edx
mov edx, dword [esi]
lea eax, [esp + 0x60]
push eax
mov eax, dword [edx + 0x128]
mov ecx, esi
call eax
push eax
mov edx, str.advertcheck
call fcn.0047dd40
mov byte [esp + 0x1ac], 4
cmp dword [esp + 0x74], ebx
je 0x408d8f
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x408d89
lea ecx, [esp + 0x64]
push esi
call fcn.00493060
mov edx, dword [esi]
mov eax, dword [edx + 0x2d8]
push edi
mov ecx, esi
call eax
mov ecx, dword [esp + 0x198]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x40], ecx
mov byte [esp + 0x44], 1
call fcn.00409820
mov eax, dword [esp + 0x198]
sub dword [esp + 0x20], edi
add dword [0x54cf1c], edi
lea ecx, [esp + 0x18]
push ecx
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call fcn.00428470
add esp, 4
call fcn.00428590
mov byte [eax], 1
cmp dword [esp + 0x78], 8
jb 0x408e06
mov eax, dword [esp + 0x64]
push eax
call fcn.004e7d7e
add esp, 4
lea esi, [esp + 0x7c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov dword [esp + 0x1ac], 0xffffffff
call fcn.00408e70
cmp dword [esp + 0x20], ebx
jg 0x408ac0
jmp 0x408e40
lea esi, [esp + 0x7c]
call fcn.00408e70
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x19c
ret