Function at 0x100167c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10050955
mov eax, dword fs:[0]
push eax
sub esp, 0x8f8
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x8f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x90c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x91c]
xor ebp, ebp
mov ebx, ecx
cmp edi, ebp
je 0x10016bec
lea eax, [edi + 0x1804]
cmp eax, ebp
je 0x10016bec
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10016820
sub eax, edx
sar eax, 1
je 0x10016bec
lea eax, [edi + 0x1804]
push eax
lea ecx, [esp + 0x38]
call fcn.10009420
lea eax, [edi + 4]
mov dword [esp + 0x914], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10016852
sub eax, edx
sar eax, 1
push eax
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x3c]
call fcn.1000b310
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x1001687e
lea eax, [esp + 0x38]
push eax
call fcn.1003a4a1
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x58]
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push edx
mov word [ecx + 4], ax
call fcn.10009230
mov ecx, ebx
call fcn.10011600
mov esi, eax
cmp esi, ebp
je 0x10016949
lea ecx, [esp + 0x50]
call fcn.1000f5c0
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.100114a0
mov ebp, dword [esp + 0x1c]
mov byte [esp + 0x914], 1
test ebp, ebp
je 0x10016931
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call edx
cmp al, 1
jne 0x10016931
mov eax, dword [esp + 0x84]
cmp eax, 2
je 0x10016931
cmp eax, 3
je 0x10016931
cmp eax, 4
je 0x10016931
cmp eax, 9
je 0x10016931
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
mov byte [esp + 0x914], 0
call edx
lea ecx, [esp + 0x34]
call fcn.10010e30
mov eax, esi
jmp 0x10016bee
mov byte [esp + 0x914], 0
test ebp, ebp
je 0x10016947
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
xor ebp, ebp
mov ecx, dword [edi]
lea eax, [esp + 0x20]
push eax
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], ebp
call fcn.100165d0
push 0x338
call fcn.10038dc2
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x914], 2
cmp esi, ebp
je 0x100169fa
mov eax, dword [edi + 0x1e28]
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
push eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x34]
mov dword [eax + 0x10], ecx
push edx
lea ecx, [ebx + 0x48]
call fcn.10016160
sub esp, 0xc4
mov ecx, esp
mov dword [esp + 0xf8], esp
push eax
call fcn.10013eb0
mov eax, dword [edi]
push eax
mov ecx, esi
call fcn.10029130
mov ebp, eax
xor esi, esi
mov byte [esp + 0x914], 0
mov dword [esp + 0x1c], esi
test ebp, ebp
je 0x10016a1c
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov esi, ebp
mov dword [esp + 0x1c], esi
mov ecx, dword [edi]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ebp, [ebx + 0x48]
push edx
mov ecx, ebp
mov byte [esp + 0x918], 3
call fcn.10016160
add eax, 0x6c
cmp dword [eax + 0x18], 8
jb 0x10016a47
mov eax, dword [eax + 4]
jmp 0x10016a4a
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.10011830
mov eax, dword [esp + 0x18]
push 0x2e
push eax
mov byte [esp + 0x91c], 4
call fcn.100386f7
add esp, 8
test eax, eax
je 0x10016aac
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x10016aac
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.10010f60
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x918], 5
call fcn.10011060
lea ecx, [esp + 0x14]
mov byte [esp + 0x914], 4
call fcn.1000ffa0
lea ecx, [esp + 0x18]
call fcn.10010f00
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x10016b62
push eax
push 0x10067068
call fcn.1003a009
add esp, 8
test eax, eax
je 0x10016b62
cmp dword [0x10066060], 0
jne 0x10016b62
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.10016160
add eax, 0x50
cmp dword [eax + 0x18], 8
jb 0x10016b06
mov ecx, dword [eax + 4]
jmp 0x10016b09
lea ecx, [eax + 4]
lea edx, [esp + 0x50]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x10016b10
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.setting.ini
lea edx, [esp + 0x54]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x100549cc
push 0x100549c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
add eax, 2
mov dword [0x10066060], eax
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.10016160
add eax, 0x6c
cmp dword [eax + 0x18], 8
jb 0x10016b82
mov eax, dword [eax + 4]
jmp 0x10016b85
add eax, 4
mov edx, dword [edi + 0x1a10]
push eax
mov eax, dword [edi + 0x1a0c]
lea ecx, [edi + 0x1a28]
push ecx
push edx
push eax
lea eax, [edi + 0x1804]
push eax
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.10026d70
test eax, eax
jne 0x10016c18
push str.PDown_param_error
push 1
push 0x10069158
call fcn.10017d90
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.1000ffa0
mov byte [esp + 0x914], 0
test esi, esi
je 0x10016be3
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x34]
call fcn.10010e30
xor eax, eax
mov ecx, dword [esp + 0x90c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8f4]
xor ecx, esp
call fcn.10038723
add esp, 0x904
ret 4
lea ebp, [esi + 0x40]
push ebp
mov ecx, ebx
call fcn.10012550
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, esi
call eax
test al, al
jne 0x10016c44
lea ecx, [esp + 0x18]
call fcn.1000ffa0
mov byte [esp + 0x914], 0
jmp 0x10016bda
mov eax, dword [edi + 0x1a20]
mov ecx, dword [edi + 0x1a18]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push eax
push ecx
mov ecx, esi
call edx
push esi
lea eax, [edi + 0x1804]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
lea ebp, [edi + 4]
push ebp
push eax
mov ecx, ebx
call fcn.10016630
mov edi, eax
test edi, edi
je 0x10016c31
mov ecx, dword [esp + 0x14]
push ecx
push ebp
push edi
push str.Handle:_u_URL:_s_File:_s
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x18
push edi
mov ecx, esi
call fcn.10026d60
lea ecx, [esp + 0x18]
call fcn.1000ffa0
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
mov byte [esp + 0x914], 0
call eax
lea ecx, [esp + 0x34]
call fcn.10010e30
mov eax, edi
jmp 0x10016bee