Function at 0x49ef90
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4008
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x608554]
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 esi, ecx
mov dword [ebp - 0x474], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x484], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x47c], 0
call fcn.00571c00
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x49f70b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x470], eax
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push str.MISC
mov ecx, esi
call fcn.004a0440
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 7
xor eax, eax
mov dword [ebp - 0x440], 0
push str.SetupUI
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
call fcn.004035d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x468]
push 0xe
xor eax, eax
mov dword [ebp - 0x458], 0
push 0x5c6a1c
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
call fcn.004035d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
push 0xa
xor eax, eax
mov dword [ebp - 0x428], 0
push str.ModuleInfo
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.004035d0
push 0x30
push 0x400
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040aa10
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x49f0fe
mov edi, dword [ebx]
mov eax, dword [ebp - 0x478]
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x49f10e
mov esi, dword [eax]
cmp dword [ebp - 0x43c], 8
lea edx, [ebp - 0x450]
push edi
cmovae edx, dword [ebp - 0x450]
lea ecx, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x438]
push 0x104
cmovae ecx, dword [ebp - 0x468]
cmp dword [ebp - 0x424], 8
push esi
cmovae eax, dword [ebp - 0x438]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x478]
mov ecx, esi
push 0
push eax
call fcn.0040aa10
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x49f1ae
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f1a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f715
push edx
push ecx
call fcn.0056deb6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x454]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x49f20f
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f205
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f71a
push edx
push ecx
call fcn.0056deb6
add esp, 8
xor eax, eax
mov dword [ebp - 0x458], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
cmp edx, 8
jb 0x49f26f
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f265
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f71f
push edx
push ecx
call fcn.0056deb6
add esp, 8
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x49f279
mov edx, dword [esi]
test edx, edx
jne 0x49f281
xor ecx, ecx
jmp 0x49f295
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f286
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x470]
call fcn.00403bb0
mov esi, dword [ebp - 0x470]
or edi, 0xffffffff
cmp dword [esi - 0xc], 0
jle 0x49f681
push 0x2a
push esi
call fcn.00570b1c
add esp, 8
test eax, eax
je 0x49f681
sub eax, esi
sar eax, 1
cmp eax, edi
je 0x49f681
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [eax + 0x124], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x450]
push 0xd
xor eax, eax
mov dword [ebp - 0x440], 0
push str.SupportLocale
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
call fcn.004035d0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x450]
mov ecx, ebx
call fcn.005360f0
mov byte [ebp - 4], 4
add esp, 4
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x49f394
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49f38a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49f724
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edi, dword [ebp - 0x42c]
cmp dword [ebp - 0x428], edi
je 0x49f673
cmp dword [edi + 0x14], 8
mov ebx, edi
jb 0x49f3b0
mov ebx, dword [edi]
call fcn.00550b4e
test eax, eax
je 0x49f70b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 6
test ebx, ebx
je 0x49f404
test ebx, 0xffff0000
jne 0x49f3ee
movzx eax, bx
lea ecx, [ebp - 0x46c]
push eax
call fcn.00403020
jmp 0x49f413
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f3f3
sub ecx, edx
sar ecx, 1
jmp 0x49f406
xor ecx, ecx
push ecx
push ebx
lea ecx, [ebp - 0x46c]
call fcn.00403bb0
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.00571c00
mov eax, dword [ebp - 0x46c]
add esp, 0xc
cmp dword [eax - 0xc], 1
jl 0x49f6e4
mov esi, eax
movzx eax, word [esi]
push eax
call fcn.005746d3
add esp, 4
test eax, eax
je 0x49f464
nop
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.005746d3
add esp, 4
test eax, eax
jne 0x49f450
mov ebx, dword [ebp - 0x46c]
cmp esi, ebx
je 0x49f500
mov edx, dword [ebx - 0xc]
sub esi, ebx
sar esi, 1
test edx, edx
js 0x49f729
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x49f4a4
push edx
lea ecx, [ebp - 0x46c]
call fcn.00403b50
mov ebx, dword [ebp - 0x46c]
mov ecx, dword [ebx - 0xc]
lea edx, [ebx + esi*2]
mov eax, ecx
sub eax, esi
mov dword [ebp - 0x474], eax
lea eax, [eax*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push ebx
call fcn.004013c0
mov ecx, dword [ebp - 0x474]
add esp, 0x10
test ecx, ecx
js 0x49f729
mov eax, dword [ebp - 0x46c]
cmp ecx, dword [eax - 8]
jg 0x49f729
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x46c]
mov word [eax + ecx*2], dx
mov ebx, dword [ebp - 0x46c]
movzx eax, word [ebx]
xor esi, esi
test ax, ax
je 0x49f587
mov ecx, eax
nop dword [eax]
push ecx
call fcn.005746d3
add esp, 4
test eax, eax
je 0x49f528
test esi, esi
mov eax, ebx
cmovne eax, esi
mov esi, eax
jmp 0x49f52a
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x49f510
test esi, esi
je 0x49f587
mov eax, dword [ebp - 0x46c]
sub esi, eax
sar esi, 1
js 0x49f729
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x49f56f
push esi
lea ecx, [ebp - 0x46c]
call fcn.00403b50
mov eax, dword [ebp - 0x46c]
cmp esi, dword [eax - 8]
jg 0x49f729
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x46c]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x478]
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x49f597
mov edx, dword [eax]
test edx, edx
jne 0x49f59f
xor ecx, ecx
jmp 0x49f5b3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f5a4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x470]
call fcn.00403bb0
push dword [ebp - 0x46c]
lea ecx, [ebp - 0x470]
push 0x5c80ec
call fcn.00446ca0
mov esi, dword [ebp - 0x470]
lea eax, [ebp - 0x218]
push esi
push str.Resource_
push eax
lea eax, [ebp - 0x420]
push 0x5d09a4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x49f6c1
lea eax, [ebp - 0x46c]
push eax
mov eax, dword [ebp - 0x480]
mov ecx, eax
push dword [eax + 8]
call fcn.0055b5b5
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x484]
mov ecx, eax
push dword [eax + 8]
call fcn.0055b606
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f664
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0x18
cmp dword [ebp - 0x428], edi
jne 0x49f3a6
or edi, 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.00409b00
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x49f69d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x47c]
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.0056d977
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x47c], 0x80010060
add edx, 0xfffffff0
mov dword [0x6183ec], 0x60
jmp 0x49f6eb
mov byte [ebp - 4], 4
lea edx, [eax - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49f676
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49f676
push 0x80004005
call fcn.004013a0
call fcn.00574908
call fcn.00574908
call fcn.00574908
call fcn.00574908
push 0x80070057
call fcn.004013a0
int3