Function at 0x411040
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x492896
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0x66c]
mov dword fs:[0], eax
mov ebx, ecx
push 0x206
xor ebp, ebp
lea ecx, [esp + 0x25e]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x264], ax
call fcn.00467480
push 0x103
push 0x4bc788
lea edx, [esp + 0x26c]
push 0x104
push edx
call fcn.00468300
add esp, 0x1c
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1e8
lea edx, [esp + 0x74]
push ebp
mov ecx, 8
mov esi, str.production.ini
lea edi, [esp + 0x58]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00467480
push 0x103
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x26c]
push 0x104
push ecx
call fcn.00468212
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x1c
lea edx, [esp + 0x258]
push edx
push 0x103
lea eax, [esp + 0x58]
push eax
push 0x499b28
push str.game
push str.param
call esi
mov ecx, 0x499b28
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411176
cmp dx, bp
je 0x411172
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411176
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x411150
xor eax, eax
jmp 0x41117b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x4114d6
xor ecx, ecx
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4111a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00402210
push 3
push ebp
push 0x49a304
lea ecx, [esp + 0x40]
mov dword [esp + 0x680], ebp
call fcn.00410070
test eax, eax
jne 0x4111fd
push 3
push ebp
push 0x49a298
lea ecx, [esp + 0x40]
call fcn.00410070
test eax, eax
jne 0x4111fd
lea ecx, [esp + 0x34]
call fcn.004053a0
jmp 0x4114d6
lea eax, [esp + 0x258]
push eax
push 0x103
lea ecx, [esp + 0x58]
push ecx
push 0x499b28
push str.channel
push str.param
call esi
mov ecx, 0x499b28
lea eax, [esp + 0x50]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411256
cmp dx, bp
je 0x411252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411256
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x411230
xor eax, eax
jmp 0x41125b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x411274
cmp dword [esp + 0x4c], 8
jb 0x4114d6
mov edx, dword [esp + 0x38]
push edx
jmp 0x4114ce
mov edi, dword [ebx + 0x2c8]
cmp edi, dword [ebx + 0x2cc]
jbe 0x411287
call fcn.0046767e
mov esi, dword [ebx + 0x2bc]
lea ebp, [edi + 0x7c]
mov edi, dword [ebx + 0x2cc]
cmp dword [ebx + 0x2c8], edi
jbe 0x4112a3
call fcn.0046767e
mov eax, dword [ebx + 0x2bc]
test esi, esi
je 0x4112b1
cmp esi, eax
je 0x4112b6
call fcn.0046767e
lea ebx, [ebp - 0x7c]
cmp ebx, edi
je 0x4114c2
push 3
xor eax, eax
push 0x49a298
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.00402210
mov byte [esp + 0x674], 1
test esi, esi
jne 0x41139b
call fcn.0046767e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x411309
call fcn.0046767e
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x411318
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp - 0x48]
push ecx
push eax
push edx
push 0
lea ecx, [ebp - 0x5c]
call fcn.00404b10
test eax, eax
mov edi, 8
sete bl
mov byte [esp + 0x674], 0
cmp dword [esp + 0x30], edi
jb 0x411351
mov eax, dword [esp + 0x1c]
push eax
call fcn.00443d03
add esp, 4
test bl, bl
je 0x411493
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x46a]
push edx
mov word [esp + 0x46c], cx
call fcn.00467480
add esp, 0xc
test esi, esi
jne 0x4113a2
call fcn.0046767e
xor eax, eax
lea ebx, [ebp - 0x7c]
cmp ebx, dword [eax + 0x10]
jb 0x411391
call fcn.0046767e
cmp dword [ebp + 0x14], edi
jb 0x4113a6
mov eax, dword [ebp]
jmp 0x4113a8
mov eax, dword [esi]
jmp 0x4112ff
mov eax, dword [esi]
jmp 0x411384
mov eax, ebp
lea ecx, [esp + 0x50]
push ecx
push eax
push str._s_para_s
lea edx, [esp + 0x46c]
push 0x104
push edx
call fcn.0046743e
add esp, 0x14
test esi, esi
jne 0x411429
call fcn.0046767e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4113dd
call fcn.0046767e
lea eax, [esp + 0x460]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4113e7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x464]
push eax
lea ecx, [ebp - 4]
call fcn.00402210
test esi, esi
jne 0x41142d
call fcn.0046767e
xor eax, eax
lea ebx, [ebp - 0x7c]
cmp ebx, dword [eax + 0x10]
jb 0x41141f
call fcn.0046767e
cmp dword [ebp + 0x30], edi
jb 0x411431
mov eax, dword [ebp + 0x1c]
jmp 0x411434
mov eax, dword [esi]
jmp 0x4113d3
mov eax, dword [esi]
jmp 0x411412
lea eax, [ebp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push eax
push str._s_para_s
lea edx, [esp + 0x46c]
push 0x104
push edx
call fcn.0046743e
add esp, 0x14
test esi, esi
jne 0x4114ba
call fcn.0046767e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x411469
call fcn.0046767e
lea eax, [esp + 0x460]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411473
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x464]
push eax
lea ecx, [ebp + 0x18]
call fcn.00402210
test esi, esi
jne 0x4114be
call fcn.0046767e
xor eax, eax
lea ecx, [ebp - 0x7c]
cmp ecx, dword [eax + 0x10]
jb 0x4114ab
call fcn.0046767e
mov ebx, dword [esp + 0x14]
add ebp, 0xe8
jmp 0x411290
mov eax, dword [esi]
jmp 0x41145f
mov eax, dword [esi]
jmp 0x41149e
cmp dword [esp + 0x4c], 8
jb 0x4114d6
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00443d03
add esp, 4
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.004673e3
add esp, 0x664
ret