Function at 0x40bb50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x425896
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x42f5ac]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f5ac]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, dword [esp + 0x170]
push 0x7f
xor ebx, ebx
lea eax, [esp + 0xe1]
push ebx
push eax
mov dword [esp + 0x2c], edi
mov byte [esp + 0xe8], 0
call fcn.00410e90
push 0x7f
lea ecx, [esp + 0x6d]
push ebx
push ecx
mov byte [esp + 0x74], bl
call fcn.00410e90
lea esi, [ebx + 1]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
push str.patches.ini
lea edx, [edi + 0x94]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x18c], ebx
lea ebp, [edi + 8]
call fcn.00402a40
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x174], 1
call fcn.004014c0
mov byte [esp + 0x168], bl
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jb 0x40bc2f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], ebx
jae 0x40bc3d
lea eax, [esp + 0x44]
push eax
push str.ReadPatchInfo:INI_file_path__s_n
call fcn.0040e850
add esp, 8
jmp 0x40bc5d
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, 0x10
push esi
push str.Patch
lea edx, [esp + 0xe4]
push str._s_d
push edx
call fcn.00410748
mov eax, dword [esp + 0x54]
inc esi
add esp, 0x10
mov dword [esp + 0x18], esi
cmp dword [esp + 0x58], ebx
jae 0x40bc8b
lea eax, [esp + 0x44]
push eax
push 0x80
lea eax, [esp + 0x64]
push eax
push 0x42663e
lea ecx, [esp + 0xec]
push ecx
push str.Patches
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov bl, byte [esp + 0x5c]
test bl, bl
je 0x40bd31
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bcc0
sub eax, edx
cmp eax, 2
jbe 0x40bce5
cmp bl, 0x31
jne 0x40bce5
cmp byte [esp + 0x5d], 0x2d
jne 0x40bce5
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [esp + 0x5c]
push edi
push eax
call fcn.0040a690
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40bd7f
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
mov ecx, ebp
call fcn.0040d1d0
push 1
mov ecx, ebp
mov edi, eax
call fcn.00403c80
cmp dword [esp + 0x18], 0x20
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
jl 0x40bc50
cmp dword [ebp + 0x18], 0
je 0x40bd3f
mov dword [esp + 0x14], 1
cmp dword [esp + 0x58], 0x10
jb 0x40bd53
mov edx, dword [esp + 0x44]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004107c5
add esp, 0x158
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov esi, dword [ebp]
mov ebx, eax
lea esp, [esp]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp]
test esi, esi
je 0x40bd9e
cmp esi, eax
je 0x40bda3
call fcn.00410931
cmp ebx, edi
je 0x40bd31
test esi, esi
jne 0x40bdec
call fcn.00410931
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40bdbc
call fcn.00410931
mov edi, dword [ebx + 8]
test edi, edi
je 0x40bdd3
mov ecx, edi
call fcn.004092e0
push edi
call fcn.00410663
add esp, 4
test esi, esi
jne 0x40bdf0
call fcn.00410931
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40bde8
call fcn.00410931
mov ebx, dword [ebx]
jmp 0x40bd90
mov eax, dword [esi]
jmp 0x40bdb2
mov eax, dword [esi]
jmp 0x40bdde