Function at 0x437e20
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x522408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov eax, dword [0x565e78]
push ebx
push ebp
mov ebp, dword [esp + 0x18c]
push esi
push edi
xor ebx, ebx
mov edi, ebp
mov dword [esp + 0x180], eax
mov dword [esp + 0x10], ebx
call fcn.00437da0
mov esi, dword [ebp + 0x358]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x437e80
sub eax, edi
push eax
push esi
call fcn.00401b10
push ebp
call fcn.00439130
push str.stockReg.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x437fbc
mov esi, dword [ebp + 0x1acc]
call fcn.00410e90
mov eax, dword [eax]
push eax
push 0x104
lea eax, [esp + 0x84]
push eax
push 0x53a3bc
push str.stockName
push str.stock
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437ee0
push ebx
sub eax, edx
push ebx
mov dword [esp + 0x1c], eax
push 0x110a
jne 0x437f14
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0002
push eax
push ebx
push ebx
push ebx
push 8
push 8
push 0x541c74
jmp 0x437f33
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffff0002
push eax
push ebx
push ebx
push ebx
push 8
push 8
lea eax, [esp + 0x98]
push eax
mov ecx, esi
push 0x23
call fcn.004f4b09
push 0xffff0002
mov edi, eax
push edi
push ebx
push ebx
push ebx
push 9
push 9
push 0x542004
push 0x23
mov ecx, esi
call fcn.004f4b09
push 0xffff0002
push edi
push ebx
push ebx
push ebx
push 9
push 9
push 0x541ff4
push 0x23
mov ecx, esi
call fcn.004f4b09
push 0xffff0002
push edi
push ebx
push ebx
push ebx
push 9
push 9
push 0x541fe4
push 0x23
mov ecx, esi
call fcn.004f4b09
push 0xffff0002
push edi
push ebx
push ebx
push ebx
push 9
push 9
push 0x542014
push 0x23
mov ecx, esi
call fcn.004f4b09
mov ecx, dword [esi + 0x1c]
push edi
push 2
push 0x1102
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
call fcn.0044e0f0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x18c], ebx
xor edi, edi
jmp 0x437fe0
mov eax, dword [ebp + 0x23c]
test eax, eax
je 0x43809d
mov ecx, dword [ebp + 0x240]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x43809d
mov esi, dword [ebp + 0x23c]
mov edx, dword [edi + esi]
push 0xffffffffffffffff
push 0
lea eax, [edi + esi + 4]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x64], edx
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.004018b0
mov cl, byte [edi + esi + 0x20]
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x58]
lea eax, [esp + 0x48]
mov byte [esp + 0x18c], 1
call fcn.00451930
mov byte [esp + 0x18c], 0
cmp dword [esp + 0x74], 0x10
jb 0x43807f
mov edx, dword [esp + 0x60]
push edx
call fcn.004fa776
add esp, 4
inc ebx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
add edi, 0x44
jmp 0x437fe0
lea eax, [esp + 0x48]
push eax
lea esi, [ebp + 0x25c]
push esi
call fcn.00451770
push esi
push ebp
call fcn.004391b0
lea ecx, [ebp + 0x24c]
push ecx
push ebp
call fcn.004394f0
xor edi, edi
xor esi, esi
mov eax, dword [ebp + 0x23c]
xor ebx, ebx
cmp eax, ebx
je 0x438119
mov ecx, dword [ebp + 0x240]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x438119
mov eax, dword [ebp + 0x23c]
add eax, esi
add eax, 0x24
push eax
push ebp
call fcn.00439a00
mov eax, dword [ebp + 0x23c]
add eax, esi
add eax, 0x34
push eax
push ebp
call fcn.0043a330
inc edi
add esi, 0x44
jmp 0x4380c6
mov esi, ebp
call fcn.0044bc10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 7
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x5422b8
mov byte [ecx + 4], 0
call fcn.00401b10
mov ecx, ebp
call fcn.0044bfe0
mov esi, dword [ebp + 0x1ae8]
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x110a
push edx
call edi
push eax
mov eax, dword [esi + 0x1c]
push 2
push 0x1102
push eax
call edi
mov ecx, dword [ebp + 0x1ae8]
call fcn.004fb18d
push ebp
call fcn.0043b920
push ebp
call fcn.0043b9c0
mov esi, ebp
call fcn.00438f20
push ebp
call fcn.00438460
mov al, byte [ebp + 0x68e5]
test al, al
je 0x4383e9
mov eax, dword [ebp + 0x691c]
xor ecx, ecx
mov dword [esp + 0x59], ecx
mov dword [esp + 0x5d], ecx
mov dword [esp + 0x61], ecx
mov dword [esp + 0x65], ecx
mov dword [esp + 0x69], ecx
mov dword [esp + 0x6d], ecx
mov dword [esp + 0x71], ecx
mov edi, 0x10
cmp eax, edi
mov word [esp + 0x75], cx
mov byte [esp + 0x58], 0
mov byte [esp + 0x77], cl
jb 0x4381e6
mov ecx, dword [ebp + 0x6908]
jmp 0x4381ec
lea ecx, [ebp + 0x6908]
cmp dword [ebp + 0x6900], edi
jb 0x4381fc
mov eax, dword [ebp + 0x68ec]
jmp 0x438202
lea eax, [ebp + 0x68ec]
push ecx
push 0x20
lea edx, [esp + 0x60]
push edx
push 0x53a3bc
push str.sServerName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 0x1acc]
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x691c], edi
jb 0x438235
mov ecx, dword [ebp + 0x6908]
jmp 0x43823b
lea ecx, [ebp + 0x6908]
cmp dword [ebp + 0x6900], edi
jb 0x43824b
mov eax, dword [ebp + 0x68ec]
jmp 0x438251
lea eax, [ebp + 0x68ec]
push ecx
push ebx
push str.gameId
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jmp 0x438270
mov ecx, dword [ebp + 0x1b0]
cmp ecx, ebx
je 0x4383e9
mov eax, dword [ebp + 0x1b4]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
sar eax, 4
cmp ecx, eax
jae 0x4383e9
mov eax, dword [ebp + 0x1b0]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax]
mov ecx, dword [esp + 0x28]
push eax
mov dword [esp + 0x18], eax
call fcn.004f4a5f
mov edx, dword [esp + 0x24]
mov esi, eax
cmp edx, dword [esi + 0x24]
mov dword [esp + 0x20], esi
jne 0x438360
lea eax, [esp + 0x58]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
jmp 0x4382e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382e0
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
call fcn.00401b10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
or ecx, 1
cmp eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
jae 0x438313
lea edi, [esp + 0x30]
mov edx, dword [esi + 0x18]
mov eax, edx
cmp eax, edx
jae 0x43831c
cmp edx, ebx
mov ebx, dword [esp + 0x40]
je 0x43834d
cmp edx, ebx
mov ecx, edx
jb 0x43832c
mov ecx, ebx
cmp dword [esi + 0x1c], 0x10
jb 0x438337
mov esi, dword [esi + 8]
jmp 0x43833a
add esi, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x438345
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov esi, dword [esp + 0x20]
jne 0x438360
cmp edx, ebx
jb 0x438360
xor eax, eax
cmp edx, ebx
setne al
test eax, eax
jne 0x438360
mov bl, 1
jmp 0x438362
xor bl, bl
xor edi, edi
mov dword [esp + 0x18c], edi
test byte [esp + 0x10], 1
je 0x4383a4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
and ecx, 0xfffffffe
cmp eax, 0x10
mov dword [esp + 0x10], ecx
jb 0x438393
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004fa776
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
test bl, bl
jne 0x4383c8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ecx
add eax, 0x10
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov edi, 0x10
jmp 0x438270
mov edi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
call fcn.0043e8b0
mov dword [ebp + 0x3130], edi
mov byte [ebp + 0x3138], 0
mov byte [ebp + 0x3139], 1
mov ebx, dword [esp + 0x4c]
xor ebp, ebp
cmp ebx, ebp
je 0x438431
mov edi, dword [esp + 0x50]
cmp ebx, edi
je 0x438428
lea esi, [ebx + 0x1c]
mov edi, edi
cmp dword [esi], 0x10
jb 0x438411
mov edx, dword [esi - 0x14]
push edx
call fcn.004fa776
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebp
mov byte [esi - 0x14], 0
add esi, 0x24
lea eax, [esi - 0x1c]
cmp eax, edi
jne 0x438400
push ebx
call fcn.004fa776
add esp, 4
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x180]
call fcn.004b6cac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret 4