Function at 0x4177b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b840
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4914f4]
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
xor ebx, ebx
cmp dword [0x49379c], ebx
je 0x4177fb
mov eax, dword [0x49387c]
push 0x2269
push ebx
push 0x473bb0
push eax
jmp 0x41780d
mov ecx, dword [0x49387c]
push 0x2268
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
mov eax, dword [0x49387c]
add eax, 0xfffffff0
add esp, 0x10
push eax
call fcn.00402ba0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x214], eax
push 0x471d88
push 0x474a44
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.0040ba10
push 0x471d88
push str..rar
lea ecx, [ebp - 0x214]
call fcn.0040ba10
mov edi, dword [ebp - 0x214]
push edi
call fcn.004140c0
add esp, 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.0042fa4e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41788d
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
push str.ResSkinMgrSkins1.45_4preview.png
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x21c]
push edx
mov byte [ebp - 4], 1
call fcn.00413e40
add esp, 0xc
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
call fcn.00403a00
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4178f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push 0x226f
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
add esp, 0x10
cmp dword [0x49379c], ebx
je 0x417b2d
push str._reschatframeaio_meg_in.gft
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00413e40
add esp, 0xc
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 3
call fcn.00403a00
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41796b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push 0x226b
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
push str._reschatframeaio_meg_out.gft
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00413e40
add esp, 0x1c
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 4
call fcn.00403a00
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4179d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push 0x226c
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
push str._reschatframeaio_quickbar_bkg.gft
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00413e40
add esp, 0x1c
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 5
call fcn.00403a00
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push 0x226d
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
push str._resskinmgraio_png_bkg.gft
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00413e40
add esp, 0x1c
push eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 6
call fcn.00403a00
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417aa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x218]
push 0x226e
push ebx
push 0x473bb0
push ecx
call fcn.0045b860
add esp, 0x10
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b0c
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.0044665f
mov esp, ebp
pop ebp
ret
mov esi, dword [0x49387c]
lea edx, [ebp - 0x244]
push edx
push esi
call fcn.0045bdd0
add esp, 8
cmp dword [ebp - 0x244], ebx
ja 0x417eeb
cmp eax, 0x3200000
ja 0x417eeb
push 0x474a44
push esi
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x417b88
push edi
push esi
call fcn.00416980
add esp, 8
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x417abd
call fcn.0042fa4e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417ba2
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 7
call fcn.004152c0
mov edi, dword [ebp - 0x220]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
push edi
call ebx
test eax, eax
je 0x417c94
mov edx, dword [ebp - 0x214]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00408390
mov bl, 8
push esi
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.00408390
push 0
push 1
push edi
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 4], 9
call fcn.00416020
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417c45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417c6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417abd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417abd
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417cae
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
push ecx
mov byte [ebp - 4], 0xa
call fcn.00414ee0
mov edi, dword [ebp - 0x228]
add esp, 4
push edi
call ebx
test eax, eax
je 0x417d9f
mov edx, dword [ebp - 0x214]
push edx
lea ecx, [ebp - 0x240]
call fcn.00408390
mov bl, 0xb
push esi
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.00408390
push 0
push 2
push edi
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov byte [ebp - 4], 0xc
call fcn.00416020
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417d4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
jmp 0x417c6e
lea ecx, [ebp - 0x224]
call fcn.00403080
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], 0xd
call fcn.004150d0
mov edi, dword [ebp - 0x224]
add esp, 4
push edi
call ebx
test eax, eax
je 0x417e47
mov edx, dword [ebp - 0x214]
push edx
lea ecx, [ebp - 0x230]
call fcn.00408390
push esi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xe
call fcn.00408390
push 0
push 3
push edi
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 4], 0xf
call fcn.00416020
add esp, 0x14
lea ecx, [ebp - 0x238]
call fcn.00402b30
lea ecx, [ebp - 0x230]
call fcn.00402b30
lea ecx, [ebp - 0x224]
call fcn.00402b30
lea ecx, [ebp - 0x228]
call fcn.00402b30
lea ecx, [ebp - 0x220]
call fcn.00402b30
jmp 0x417abd
lea ecx, [ebp - 0x224]
call fcn.00402b30
lea ecx, [ebp - 0x228]
call fcn.00402b30
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.00402b30
cmp dword [ebp - 0x21c], 0
jne 0x417abd
xor ebx, ebx
push 1
push 0x474780
push 0x474c30
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x417f21
push 0x188
lea edx, [ebp - 0x198]
push ebx
mov ecx, 0x1e
mov esi, str.http:__download.haozip.com_uniondown_haozip_tiny.201805.exe
lea edi, [ebp - 0x210]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00446290
push 0x1004
call fcn.0042313e
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x417f02
push 0x800
lea eax, [esi + 0x800]
push ebx
push eax
mov dword [esi + 0x1000], ebx
call fcn.00446290
add esp, 0xc
jmp 0x417f04
push ebx
push 0x474a7c
push 0x474a50
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x417e7b
xor esi, esi
lea ecx, [ebp - 0x210]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push ebx
push ebx
push ebx
push esi
push 0x464610
call fcn.0042eb95
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417f47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x417b11