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

Disassembly:
push 0xffffffffffffffff
push 0x4e3a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
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 [0x51c36c], ebx
je 0x409d36
cmp byte [0x51bf98], bl
je 0x409d36
mov ecx, dword [0x51bfa0]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x409ba3
mov ecx, dword [ecx + 8]
sub ecx, eax
sar ecx, 4
jne 0x409d36
cmp byte [0x51c390], bl
jne 0x409ceb
push 0x658
call fcn.004b6eb3
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1ac], ebx
je 0x409bd6
mov esi, eax
call fcn.00476f76
mov esi, eax
jmp 0x409bd8
xor esi, esi
mov dword [esp + 0x1ac], 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx + 0x170]
push 0x51c358
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.00465816
mov edi, 1
mov dword [esp + 0x1ac], edi
cmp dword [esp + 0x58], ebx
je 0x409c45
cmp dword [esp + 0x5c], 8
mov ecx, dword [esp + 0x48]
jae 0x409c3f
lea ecx, [esp + 0x48]
push esi
call fcn.0047409d
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.0040a8a0
sub dword [esp + 0x20], edi
call fcn.004297e0
test eax, eax
je 0x409c88
cmp dword [0x51c300], ebx
mov eax, 0x51c048
jne 0x409c8d
mov eax, 0x51c358
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.0042bbf0
add esp, 4
call fcn.0042bd10
mov byte [eax], 1
mov dword [esp + 0x1ac], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x409cd5
mov edx, dword [esp + 0x48]
push edx
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jmp 0x409edb
call fcn.004297e0
test eax, eax
je 0x409d01
cmp dword [0x51c300], ebx
mov eax, 0x51c048
jne 0x409d06
mov eax, 0x51c358
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.0042bbf0
add esp, 4
call fcn.0042bd10
mov byte [eax], 1
jmp 0x409d3b
mov edi, 1
mov esi, dword [0x51bf9c]
lea eax, [esp + 0x7c]
call fcn.00408ed0
lea eax, [esp + 0x7c]
push eax
mov eax, esi
mov dword [esp + 0x1b0], 2
call fcn.00428fd0
add esp, 4
test al, al
je 0x409ee7
push 0x658
call fcn.004b6eb3
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov byte [esp + 0x1ac], 3
je 0x409dd4
push esi
call fcn.0048d452
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 0x409dd6
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.00465816
mov byte [esp + 0x1ac], 4
cmp dword [esp + 0x74], ebx
je 0x409e3f
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x409e39
lea ecx, [esp + 0x64]
push esi
call fcn.0047409d
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.0040a8a0
mov eax, dword [esp + 0x198]
sub dword [esp + 0x20], edi
add dword [0x51bf9c], 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.0042bbf0
add esp, 4
call fcn.0042bd10
mov byte [eax], 1
cmp dword [esp + 0x78], 8
jb 0x409eb6
mov eax, dword [esp + 0x64]
push eax
call fcn.004b6eae
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.00409f20
cmp dword [esp + 0x20], ebx
jg 0x409b70
jmp 0x409ef0
lea esi, [esp + 0x7c]
call fcn.00409f20
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.004b6e9f
add esp, 0x19c
ret