Function at 0x10004690
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017c028
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x101e26c8]
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
mov dword [ebp - 0x140], 0x1018c240
mov dword [ebp - 0x13c], 0x1018c23c
mov dword [ebp - 0x138], 0x1018c238
mov dword [ebp - 0x134], 0x1018c2a4
mov dword [ebp - 0x130], 0x1018c22c
mov dword [ebp - 0x12c], 0x1018c348
mov dword [ebp - 0x128], 0x1018c294
mov dword [ebp - 0x124], 0x1018c340
mov dword [ebp - 0x10c], 0xc
mov dword [ebp - 0x108], 0xb
mov dword [ebp - 0x104], 1
mov dword [ebp - 0x100], 0xd
mov dword [ebp - 0xfc], 0x41
mov dword [ebp - 0xf8], 0xffffffff
mov dword [ebp - 0xf4], 0xfffffffe
mov dword [ebp - 0xf0], 0xffffd8f1
call fcn.1003ebe5
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x1000477a
push 0x80004005
call fcn.10003370
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x114], eax
mov ecx, dword [sym.imp.CfgDll55.dll_m_pCfg]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54c]
push 0x50
lea eax, [ebp - 0x6c]
push eax
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 4], esi
call edx
mov eax, dword [ebp - 0x120]
mov byte [ebp + eax - 0x6c], 0
lea eax, [ebp - 0x6c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100047c5
sub eax, ecx
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x114]
call fcn.10005ae0
push 1
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x114]
call fcn.100058f0
mov eax, dword [eax]
push 0x1018c33c
push eax
call fcn.101293f9
add esp, 8
cmp eax, esi
mov eax, dword [ebp - 0x118]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1000483f
push 1
push 0x1018c33c
lea ecx, [ebp - 0x114]
call fcn.10005ca0
push 0xe
push str.SATERRTYPE.ini
lea ecx, [ebp - 0x114]
call fcn.10005ca0
mov dword [ebp - 0x110], esi
mov edx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
mov edi, dword [ebp + ecx - 0x140]
push edx
push 0xffffffffffffffff
push str.ERRTYPENUM
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x118], eax
call fcn.1003ebe5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x10004770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x11c], ebx
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x118], esi
jle 0x1000491b
inc esi
push esi
lea ecx, [ebp - 0x11c]
push str.ERRTYPE_d
push ecx
call fcn.10005e50
mov edx, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x11c]
add esp, 0xc
push edx
push 0x80
lea eax, [ebp - 0xec]
push eax
push 0x1018c312
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jle 0x10004913
lea ecx, [ebp - 0xec]
push ecx
mov ecx, 0x101e5d04
call fcn.10006260
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp + edx - 0x10c]
mov dword [eax], ecx
cmp esi, dword [ebp - 0x118]
jl 0x100048b3
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000493b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x110]
add eax, 4
mov dword [ebp - 0x110], eax
cmp eax, 0x20
jl 0x10004857
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.pmsrwdata.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100049a6
push str._GETPOINTER_DY_8
push eax
call ebx
mov esi, eax
test esi, esi
je 0x100049a6
lea ecx, [ebp - 0x110]
push ecx
push 1
call esi
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x110]
push eax
push 2
mov dword [0x101e5cf4], edx
call esi
mov ecx, dword [ebp - 0x110]
mov dword [0x101e5cf8], ecx
push str.pmsrwaddin.dll
call edi
test eax, eax
je 0x100049be
push str.ZOOMSELKINDIBG
push eax
call ebx
mov dword [0x101e5cfc], eax
mov eax, dword [ebp - 0x114]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100049e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.10128fd0
mov esp, ebp
pop ebp
ret