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

Disassembly:
push 0xffffffffffffffff
push 0x5f76bb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
mov edi, ecx
mov eax, edi
lea esi, [esp + 0x74]
call fcn.004e1d20
xor esi, esi
mov dword [esp + 0x9c], esi
cmp dword [esp + 0x88], esi
jne 0x4a13ba
lea ecx, [esp + 0x74]
mov dword [esp + 0x9c], 0xffffffff
call dword [0x6105a0]
xor al, al
jmp 0x4a162c
mov dword [esp + 0x3c], str.CHOICE
mov dword [esp + 0x40], str.WEBGAME
mov dword [esp + 0x44], str.ONLINE
mov dword [esp + 0x48], str.PCGAME
mov dword [esp + 0x4c], str.FLASH
mov dword [esp + 0x50], str.SPARE
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], 6
mov eax, dword [esp + esi*4 + 0x3c]
push eax
lea ecx, [esp + 0x24]
call dword [0x610498]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], eax
cmp ecx, eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jb 0x4a1448
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, 8
cmp dword [esp + 0x38], ecx
jae 0x4a145b
lea edx, [esp + 0x24]
cmp dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x78]
jae 0x4a146c
lea ecx, [esp + 0x78]
mov eax, dword [eax]
test eax, eax
je 0x4a147d
push eax
push edx
push ecx
call fcn.004ce260
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call dword [0x6105a0]
test bl, bl
jne 0x4a149a
add esi, 1
cmp esi, 6
jb 0x4a141a
jmp 0x4a14a1
mov ecx, dword [esp + esi*4 + 0x58]
mov dword [ebp], ecx
cmp dword [ebp], 0
je 0x4a139e
test edi, edi
je 0x4a139e
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4a14d8
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4a1571
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4a14c0
xor eax, eax
test eax, eax
mov edi, eax
je 0x4a139e
lea ecx, [esp + 0x3c]
call dword [0x61049c]
lea ecx, [esp + 0x3c]
push ecx
mov esi, edi
mov byte [esp + 0xa0], 1
call fcn.004e1ea0
test al, al
je 0x4a15d8
mov eax, edi
lea esi, [esp + 0x58]
call fcn.004e1d20
push 0x625344
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 2
call dword [0x610498]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
jb 0x4a1548
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x4a155b
lea edx, [esp + 0x24]
cmp dword [esp + 0x70], esi
mov ecx, dword [esp + 0x5c]
jae 0x4a1569
lea ecx, [esp + 0x5c]
mov eax, dword [eax]
test eax, eax
jne 0x4a157f
jmp 0x4a158a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4a14da
push eax
push edx
push ecx
call fcn.004ce260
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x20]
sete bl
call dword [0x6105a0]
test bl, bl
je 0x4a15c6
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x4a15ab
lea eax, [esp + 0x40]
push 0
call fcn.004ce080
add esp, 4
lea edx, [esp + 0x18]
push edx
lea esi, [ebp + 4]
mov dword [esp + 0x1c], eax
call fcn.00447e10
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 1
call dword [0x6105a0]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 0
call dword [0x6105a0]
test edi, edi
je 0x4a1615
mov esi, dword [edi + 0x28]
test esi, esi
je 0x4a1609
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x4a1653
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4a15f5
xor eax, eax
test eax, eax
mov edi, eax
jne 0x4a14e4
lea ecx, [esp + 0x74]
mov dword [esp + 0x9c], 0xffffffff
call dword [0x6105a0]
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.005e693f
add esp, 0x8c
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x4a160b