Function at 0x413ca0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x493093
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [esp + 0x318]
mov ebp, dword [esp + 0x310]
mov ecx, dword [esp + 0x31c]
mov edi, dword [esp + 0x320]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x3c], eax
mov eax, ebp
mov word [esp + 0xc0], dx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0xd4], 7
mov dword [esp + 0xd0], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413d30
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0xc4]
call fcn.00402220
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x310], ebx
mov esi, ebp
call fcn.00406920
mov byte [esp + 0x308], 1
jmp 0x413d7f
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
movzx eax, word [esi]
cmp ax, bx
jne 0x413d91
cmp word [esi - 2], bx
je 0x41416e
mov edx, esi
sub edx, ebp
sar edx, 1
cmp edx, dword [esp + 0x314]
jge 0x41416e
cmp ax, bx
jne 0x413dae
add esi, 2
jmp 0x413d7f
xor eax, eax
mov word [esp + 0xa4], ax
mov edi, 7
mov eax, esi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413dd0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00402220
mov eax, esi
mov byte [esp + 0x308], 2
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413e00
sub eax, edx
sar eax, 1
push 1
lea ecx, [esi + eax*2 + 2]
push ebx
lea edx, [esp + 0x84]
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0xac]
mov dword [esp + 0x88], 0x3d
call fcn.00410040
mov ecx, dword [esp + 0xb4]
cmp eax, ecx
ja 0x413e55
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xa8]
call fcn.00401a60
jmp 0x413e65
sub eax, ecx
push ebx
push eax
lea ecx, [esp + 0xa8]
call fcn.00410a40
push ebx
xor eax, eax
push 0x49ab28
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], ax
call fcn.00402220
xor ecx, ecx
push 1
mov word [esp + 0x50], cx
push 0x49b438
lea ecx, [esp + 0x50]
mov byte [esp + 0x310], 3
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
call fcn.00402220
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0x314], 4
call fcn.00435bc0
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x60], esi
jb 0x413ef3
mov edx, dword [esp + 0x4c]
push edx
call fcn.004440cb
add esp, 4
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
mov byte [esp + 0x308], 2
cmp dword [esp + 0x98], esi
jb 0x413f23
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004440cb
add esp, 4
push ebx
xor edx, edx
push 0x49ab28
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], dx
call fcn.00402220
push 1
xor eax, eax
push 0x49b434
lea ecx, [esp + 0x50]
mov byte [esp + 0x310], 5
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
call fcn.00402220
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x314], 6
call fcn.00435bc0
add esp, 0xc
cmp dword [esp + 0x60], esi
jb 0x413fac
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004440cb
add esp, 4
xor edx, edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], dx
mov byte [esp + 0x308], 2
cmp dword [esp + 0x98], esi
jb 0x413fdc
mov eax, dword [esp + 0x84]
push eax
call fcn.004440cb
add esp, 4
push 0x104
lea ecx, [esp + 0xf8]
push ebx
push ecx
call fcn.00467850
add esp, 0xc
cmp dword [esp + 0xb8], esi
mov esi, dword [esp + 0xa4]
jae 0x414009
lea esi, [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
call fcn.00401830
mov ecx, dword [esp + 0x3c]
push eax
push 0x103
lea edx, [esp + 0xfc]
push edx
push 0x49ab28
push esi
call fcn.00401830
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov word [esp + 0xdc], ax
lea eax, [esp + 0xf4]
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
lea edx, [eax + 2]
jmp 0x414060
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414060
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0xe0]
call fcn.00402220
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x310], 7
call fcn.00410710
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
xor esi, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
lea esp, [esp]
cmp eax, ebx
je 0x4140c8
cmp eax, ebp
je 0x4140cd
call fcn.00467a4e
cmp dword [esp + 0x68], edi
je 0x4140e3
lea ecx, [esp + 0x64]
inc esi
call fcn.004048c0
mov eax, dword [esp + 0x64]
jmp 0x4140c0
cmp esi, ebx
jne 0x41410a
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xe0]
push ecx
mov ecx, eax
call fcn.00402120
mov esi, 8
cmp dword [esp + 0xf0], esi
jb 0x414128
mov edx, dword [esp + 0xdc]
push edx
call fcn.004440cb
add esp, 4
xor eax, eax
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], ax
mov byte [esp + 0x308], 1
cmp dword [esp + 0xb8], esi
jb 0x413d73
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.004440cb
add esp, 4
jmp 0x413d73
cmp dword [esp + 0x38], 0xa
je 0x4141a6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x308], bl
call fcn.0040b410
cmp dword [esp + 0xd4], 8
jb 0x41419f
mov edx, dword [esp + 0xc0]
push edx
call fcn.004440cb
add esp, 4
xor eax, eax
jmp 0x41458e
push 9
xor eax, eax
mov ebp, 7
push str.GameGroup
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], ax
call fcn.00402220
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x310], 8
call fcn.00410710
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push edx
mov dword [esp + 0x30], ebx
call fcn.00410330
add esp, 0x18
cmp dword [esp + 0x18], ebx
jne 0x414276
mov esi, 8
cmp dword [esp + 0xb8], esi
jb 0x414242
mov eax, dword [esp + 0xa4]
push eax
call fcn.004440cb
add esp, 4
xor ecx, ecx
mov word [esp + 0xa4], cx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov byte [esp + 0x308], bl
call fcn.0040b410
cmp dword [esp + 0xd4], esi
jmp 0x41418d
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bcc0
mov ecx, dword [eax + 0x14]
push 6
push str.MMORPG
push ecx
push ebx
mov ecx, eax
call fcn.00404b70
neg eax
sbb eax, eax
push 8
neg eax
push str.GameName
lea ecx, [esp + 0xa8]
mov dword [edi], eax
call fcn.00402220
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
jne 0x4142f9
lea ecx, [esp + 0xa0]
call fcn.00405180
lea ecx, [esp + 0x1c]
mov byte [esp + 0x308], bl
call fcn.0040b410
lea ecx, [esp + 0xbc]
call fcn.00405180
xor eax, eax
jmp 0x41458e
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 4]
call fcn.00402120
push 9
push str.GameGrade
lea ecx, [esp + 0xa8]
call fcn.00402220
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
push str.TESTING
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x24]
call fcn.0040bcc0
push eax
call fcn.00410370
xor ecx, ecx
add esp, 8
test al, al
sete cl
push str.GameType
mov dword [edi + 0x3c], ecx
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x20]
call fcn.00402120
push str.GameURLDownLoad
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x40]
call fcn.00402120
push str.GameURLDownLoad_MAX
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.00410b20
lea ecx, [esp + 0xa0]
test eax, eax
je 0x4142d1
push ecx
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x5c]
call fcn.00402120
push str.GameURLHome
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x78]
call fcn.00402120
push str.GameURLHome_MAX
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0x94]
call fcn.00402120
push str.GameLaunchName
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.00410b20
lea ecx, [esp + 0xa0]
test eax, eax
je 0x4142d1
push ecx
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0xb0]
call fcn.00402120
push 0x49b43c
lea ecx, [esp + 0xa4]
call fcn.00402b80
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x20]
call fcn.00410b20
test eax, eax
je 0x4142ca
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
call fcn.0040bcc0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0xcc]
call fcn.00402120
lea ecx, [esp + 0xa0]
call fcn.00405180
lea ecx, [esp + 0x1c]
mov byte [esp + 0x308], bl
call fcn.0040b410
lea ecx, [esp + 0xbc]
call fcn.00405180
mov eax, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004677ab
add esp, 0x2f8
ret 0x14