Function at 0x416d70
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4932a1
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0xa64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0xa7c]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x5a]
push ecx
mov word [esp + 0x5c], ax
call fcn.00467850
add esp, 0xc
push 1
push 0x23
lea edx, [esp + 0x58]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x416d3a
push str.CyGameHall
lea eax, [esp + 0x54]
push 0x103
push eax
call fcn.00468565
push str.CYLobbyLocation.ini
lea ecx, [esp + 0x60]
push 0x103
push ecx
call fcn.00468565
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x27a]
push eax
mov word [esp + 0x27c], dx
call fcn.00467850
push 0x4bd788
lea ecx, [esp + 0x280]
push 0x103
push ecx
call fcn.00468565
push 0x49b6f4
lea edx, [esp + 0x28c]
push 0x103
push edx
call fcn.00468565
movzx eax, word [esp + 0x294]
push eax
call fcn.00468a98
add esp, 0x40
test eax, eax
je 0x41691f
movzx ecx, word [esp + 0x258]
push ecx
call fcn.00468a1b
add esp, 4
mov word [esp + 0x258], ax
lea edx, [esp + 0x50]
push 0
push edx
call fcn.00467fa5
add esp, 8
test eax, eax
je 0x4169e5
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.CYLobbyLocation.ini
lea edx, [esp + 0x54]
push 0x103
push edx
call fcn.00468565
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x416d3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x25c]
push edx
push 0x49b6d8
push str.PARAM
call esi
lea eax, [esp + 0x50]
push eax
push 0x49b6d4
push str.CYLobbyNum
push str.PARAM
call esi
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x25c]
push edx
push 0x49b6a8
push str.PARAM
call esi
jmp 0x416d3a
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x672]
push ecx
mov word [esp + 0x674], ax
call fcn.00467850
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push 0x103
lea eax, [esp + 0x670]
push eax
push 0x49b6a4
push str.CYLobbyNum
push str.PARAM
call ebp
lea ecx, [esp + 0x668]
push ecx
call fcn.00467fd3
mov edi, eax
lea edx, [edi - 1]
add esp, 4
cmp edx, 0x62
ja 0x416d3a
lea ecx, [esp + 0x14]
call fcn.00409c40
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x46a]
push ecx
mov dword [esp + 0xa90], 0
mov word [esp + 0x46c], ax
call fcn.00467850
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x886]
push eax
mov word [esp + 0x888], dx
call fcn.00467850
mov esi, 1
add esp, 0x18
xor bl, bl
cmp edi, esi
jl 0x416b96
lea esp, [esp]
push esi
push str.Location_d
lea ecx, [esp + 0x878]
push 0x103
push ecx
call fcn.00467806
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push 0x103
lea eax, [esp + 0x468]
push eax
push 0x49ab28
lea ecx, [esp + 0x880]
push ecx
push str.PARAM
call ebp
lea edx, [esp + 0x460]
push 0
push edx
call fcn.00467fa5
add esp, 8
test eax, eax
jne 0x416b4a
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x30]
call fcn.004068e0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xa88], 1
call fcn.00416760
cmp dword [esp + 0x44], 8
mov byte [esp + 0xa84], 0
jb 0x416b4a
mov edx, dword [esp + 0x30]
push edx
call fcn.004440cb
add esp, 4
lea ecx, [esp + 0x258]
lea eax, [esp + 0x460]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416b7e
test dx, dx
je 0x416b7a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416b7e
add eax, 4
add ecx, 4
test dx, dx
jne 0x416b58
xor eax, eax
jmp 0x416b83
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416b89
mov bl, 1
inc esi
cmp esi, edi
jle 0x416ab0
test bl, bl
jne 0x416bd1
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x30]
call fcn.004068e0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xa88], 2
call fcn.00416760
cmp dword [esp + 0x44], 8
jb 0x416bd1
mov edx, dword [esp + 0x30]
push edx
call fcn.004440cb
add esp, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x416d31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x25c]
push edx
push 0x49b6d8
push str.PARAM
call esi
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x416d31
push 0xa
push 0x103
lea ecx, [esp + 0x670]
push ecx
push eax
call fcn.00468899
add esp, 0x10
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x66c]
push eax
push str.CYLobbyNum
push str.PARAM
call esi
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
mov ebp, 1
call fcn.00410650
mov esi, dword [eax]
mov edi, dword [eax + 4]
jmp 0x416c90
mov eax, dword [esp + 0x24]
mov ebx, eax
cmp dword [esp + 0x20], eax
jbe 0x416ca1
call fcn.00467a4e
test esi, esi
je 0x416cab
cmp esi, dword [esp + 0x14]
je 0x416cb0
call fcn.00467a4e
cmp edi, ebx
je 0x416d31
push ebp
push str.Location_d
lea edx, [esp + 0x878]
push 0x103
push edx
call fcn.00467806
add esp, 0x10
test esi, esi
jne 0x416cef
call fcn.00467a4e
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x416ce4
call fcn.00467a4e
cmp dword [edi + 0x18], 8
jb 0x416cf3
mov eax, dword [edi + 4]
jmp 0x416cf6
mov eax, dword [esi]
jmp 0x416cda
lea eax, [edi + 4]
lea ecx, [esp + 0x50]
push ecx
push eax
lea edx, [esp + 0x878]
push edx
push str.PARAM
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
inc ebp
test esi, esi
jne 0x416d2d
call fcn.00467a4e
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x416d25
call fcn.00467a4e
add edi, 0x1c
jmp 0x416c90
mov eax, dword [esi]
jmp 0x416d1b
lea ecx, [esp + 0x14]
call fcn.0040a630
mov ecx, dword [esp + 0xa7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa64]
xor ecx, esp
call fcn.004677ab
add esp, 0xa74
ret
push ecx
push esi
mov esi, ecx
call fcn.004119d0
mov ecx, esi
call fcn.00414d20
lea eax, [esi + 0x250]
push eax
mov ecx, esi
call fcn.00411b40
cmp eax, 1
jne 0x416da1
mov ecx, esi
call fcn.004152b0
mov ecx, esi
call fcn.00415710
mov ecx, esi
call fcn.00416680
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x20], esp
xor edx, edx
push 0xffffffffffffffff
lea eax, [esi + 0x34c]
push edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00402120
lea ecx, [esi + 0xa4]
call fcn.004092c0
mov ecx, esi
pop esi
add esp, 4
jmp 0x416810