Function at 0x4137d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4528f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x46dec0]
push ebx
push esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
xor ebx, ebx
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040d130
call fcn.00444b67
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push eax
push ecx
lea eax, [esp + 0x34]
push str._s_s
push eax
mov dword [esp + 0x6c], ebx
call fcn.00402400
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x14]
add esp, 0x10
push edi
push 0x20
lea ecx, [esp + 0x38]
push ecx
push 0x454da4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4138e0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x24]
call fcn.0040d080
test eax, eax
je 0x4138e0
mov ecx, dword [esp + 0x26]
mov eax, 0x8000
test eax, ecx
je 0x4138e0
test dword [esp + 0x1a], eax
je 0x4138e0
mov ax, word [esp + 0x20]
cmp ax, word [esp + 0x14]
jne 0x4138e0
mov cx, word [esp + 0x22]
cmp cx, word [esp + 0x16]
jne 0x4138e0
mov dx, word [esp + 0x24]
cmp dx, word [esp + 0x18]
jne 0x4138e0
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4138d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
xor edx, edx
jmp 0x413a23
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d480
mov esi, eax
push ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 1
call fcn.0040d480
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [0x46f470]
mov edx, dword [ecx]
push esi
push eax
push 0x88
push str._Patch:_d_check_ver_failed___s__s
push ecx
mov byte [esp + 0x70], 2
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x5c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41394c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41396e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040d480
mov esi, eax
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 3
call fcn.0040d480
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
push 0x8a
push str._Patch:_d_check_ver_failed___s__s
push 0x46f474
mov byte [esp + 0x70], 4
call fcn.0040ac70
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x5c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4139d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x5c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4139fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 3
mov edx, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x48]
pop ebx
call fcn.00432fde
add esp, 0x54
ret