Function at 0x41d890
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a029c
mov eax, dword fs:[0]
push eax
sub esp, 0x7b0
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x7ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x7c4]
mov dword fs:[0], eax
push 0x206
mov ebp, ecx
xor ebx, ebx
lea ecx, [esp + 0x5be]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x5c4], ax
call fcn.00482280
push 0x206
lea eax, [esp + 0x3c2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x3c8], dx
call fcn.00482280
add esp, 0x18
lea ecx, [esp + 0x3b0]
push ecx
mov ecx, 0x4f0110
lea edi, [ebx + 1]
mov dword [esp + 0x1c], ebx
call fcn.0040c130
test eax, eax
je 0x41d989
lea edx, [esp + 0x3b0]
push edx
push 0x104
lea eax, [esp + 0x5c0]
push eax
push 0x4a8ca8
push str.Title
push 0x4ab460
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x3b0]
push ecx
push edi
push str.ShowVer
push 0x4ab460
call esi
lea edx, [esp + 0x3b0]
push edx
push ebx
push str.ShowPacPath
push 0x4ab460
mov edi, eax
call esi
mov dword [esp + 0x18], eax
call fcn.00459da6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41d9a3
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x7cc], ebx
cmp edi, ebx
je 0x41da13
lea ecx, [esp + 0x24]
call fcn.0044ca70
lea ecx, [esp + 0x24]
mov byte [esp + 0x7cc], 1
call fcn.0044ddc0
cmp eax, ebx
jne 0x41d9e0
xor ecx, ecx
jmp 0x41d9f4
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x41d9e5
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00401890
lea ecx, [esp + 0x24]
mov byte [esp + 0x7cc], bl
call fcn.0043e7b0
mov esi, dword [esp + 0x1c]
call fcn.00459da6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41da2d
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5b8]
mov byte [esp + 0x7cc], 2
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41da50
sub eax, edx
sar eax, 1
je 0x41da7d
lea ecx, [esp + 0x5b8]
push ecx
lea edx, [esp + 0x18]
push str.ResearchDownload___s_
push edx
call fcn.00401ce0
add esp, 0xc
jmp 0x41da8d
push 0x10
push str.ResearchDownload
lea ecx, [esp + 0x1c]
call fcn.00401890
cmp edi, ebx
je 0x41daaf
push 4
push str.___R
lea ecx, [esp + 0x1c]
call fcn.00401ae0
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ae0
cmp dword [esp + 0x18], ebx
je 0x41db55
mov eax, dword [ebp + 0x110]
cmp dword [eax - 0xc], ebx
je 0x41db55
cmp dword [ebp + 0x1aac], ebx
je 0x41db55
call fcn.00459da6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41daee
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x110]
push ecx
lea edx, [esp + 0x1c]
push str._____s_
push edx
mov byte [esp + 0x7d8], 3
call fcn.00401ce0
mov esi, dword [esp + 0x24]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ae0
lea eax, [esi - 0x10]
mov byte [esp + 0x7cc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
mov ecx, ebp
call fcn.00459254
lea eax, [esi - 0x10]
mov byte [esp + 0x7cc], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x7cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dbaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7ac]
xor ecx, esp
call fcn.004820da
add esp, 0x7bc
ret