Function at 0x413a40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546142
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x59bad0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push str..WAW.INI
lea ecx, [ebp - 0x114]
call fcn.00407920
mov byte [ebp - 4], 2
mov eax, dword [0x5a3b08]
mov eax, dword [eax + 8]
push 0x572c7a
push eax
call fcn.0051cef2
add esp, 8
test eax, eax
setne al
test al, al
je 0x413b39
mov ecx, dword [0x5a3b08]
add ecx, 8
push ecx
lea edx, [ebp - 0x11c]
push 0x57320c
push edx
call fcn.00406260
mov byte [ebp - 4], 3
push str.WAW.INI
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00406180
add esp, 0x18
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x114]
call fcn.004047a0
mov byte [ebp - 4], 3
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 0x413b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
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 0x413b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0x572c7a
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 0x10]
dec eax
cmp eax, 5
ja case.0x413b6c.4
jmp dword [eax*4 + 0x413cc0]
mov ecx, 0x5761c8
lea eax, [ebp - 0x110]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413baa
test dl, dl
je 0x413b9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413baa
add eax, 2
add ecx, 2
test dl, dl
jne 0x413b80
xor eax, eax
test eax, eax
sete dl
mov byte [esi], dl
jmp case.0x413b6c.4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esi], dl
jmp case.0x413b6c.4
mov ecx, 0x5761cc
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413bea
test dl, dl
je 0x413bdf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413bea
add eax, 2
add ecx, 2
test dl, dl
jne 0x413bc3
xor eax, eax
test eax, eax
setne al
mov byte [esi], al
jmp case.0x413b6c.4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
mov byte [esi], al
jmp case.0x413b6c.4
lea ecx, [ebp - 0x110]
push ecx
call fcn.0051da79
add esp, 4
mov dword [esi], eax
jmp case.0x413b6c.4
lea edx, [ebp - 0x110]
push edx
call fcn.0051dbaa
fstp qword [esi]
add esp, 4
jmp case.0x413b6c.4
lea eax, [ebp - 0x110]
push eax
push 0x575cf8
push esi
call fcn.00407560
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c59
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c7c
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 + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ca2
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051c462
mov esp, ebp
pop ebp
ret 0xc