Function at 0x402d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528bec
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x573ab4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x114]
push 0x5c
push ecx
call fcn.005059e0
add esp, 8
push str.Language.ini
lea edx, [ebp - 0x114]
push edx
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SideKey
lea ecx, [ebp - 0x11c]
call fcn.00406aa0
mov dword [ebp - 4], 0
call fcn.00407ce6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402ddc
push 0x80004005
call fcn.004012d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
call fcn.00407ce6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402e0c
push 0x80004005
call fcn.004012d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
push 0x55437c
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00406aa0
push 0x3e8
mov byte [ebp - 4], 3
call fcn.00505ec5
push 0x66
lea ecx, [ebp - 0x118]
push str.IDD_d_Title
push ecx
mov edi, eax
call fcn.004028b0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x11c]
push 0x3e8
push edi
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x402e8e
push edi
mov ecx, esi
call fcn.0040f96b
mov eax, dword [esi + 0x20]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0040bd83
mov esi, eax
test esi, esi
je 0x402f0c
mov ecx, esi
call fcn.0040f9b2
push eax
push 0x66
lea ecx, [ebp - 0x118]
push str.IDD_d__d
push ecx
call fcn.004028b0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
add esp, 0x10
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x11c]
push 0x3e8
push edi
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x402ef4
push edi
mov ecx, esi
call fcn.0040f96b
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0040bd83
mov esi, eax
test esi, esi
jne 0x402ea6
push edi
call fcn.00505f59
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005057b0
mov esp, ebp
pop ebp
ret