Function at 0x10058720
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1007f4da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
mov dword [esp + 0x78], ecx
push edi
lea ecx, [esp + 0xe0]
call fcn.10051d20
mov eax, dword [0x10098a04]
xor ebx, ebx
mov ecx, 0x10098a04
mov dword [esp + 0x138], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x138], 1
call fcn.10051d20
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.DownloadToolbar_
lea ecx, [esp + 0x58]
mov byte [esp + 0x13c], 4
call fcn.10005e50
push ebx
push 0x208
mov byte [esp + 0x140], 5
call fcn.10001450
add esp, 8
cmp eax, ebx
je 0x100587fb
push 0x208
push eax
lea ecx, [esp + 0x3c]
call fcn.10004800
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.100090e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 6
call fcn.10004aa0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x138], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005884a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x44]
call fcn.10029c20
mov dword [esp + 0x48], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x48]
mov dword [eax], eax
mov eax, dword [esp + 0x48]
mov dword [eax + 8], eax
mov dword [esp + 0x4c], ebx
lea eax, [esp + 0x1c]
push eax
push SysReAllocStringLen
mov byte [esp + 0x140], 7
call fcn.1004aeb0
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
lea eax, [esi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x138], 8
mov dword [esp + 0x20], eax
jne 0x100588e7
lea ecx, [esp + 0x1c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1004aeb0
mov edi, eax
add esp, 8
cmp edi, esi
je 0x100588d4
mov ecx, esi
call fcn.1000de20
push esi
call fcn.10069196
add esp, 4
lea eax, [edi + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [eax]
mov esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
cmp eax, ebx
mov dword [esp + 0x2c], ebx
jbe 0x1005909b
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
cmp dword [edx], eax
jbe 0x100591bd
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0xc]
add ecx, eax
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x10058923
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x10058955
cmp eax, dword [esi]
jne 0x10058955
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x10058987
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x100591c6
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov dword [esp + 0x8c], eax
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov eax, dword [ecx]
mov byte [esp + 0x138], 9
mov dword [esp + 0x58], esi
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x100589c3
cmp eax, dword [esi]
jne 0x100589c3
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x100589f5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x100591c6
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 0x10]
mov dword [esp + 0x60], esi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0xa
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0xb
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
push 0
push 0xcc
mov byte [esp + 0x140], 0xc
call fcn.10001450
add esp, 8
test eax, eax
je 0x10058a5f
push 0xcc
push eax
lea ecx, [esp + 0x40]
call fcn.10004800
mov eax, dword [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.10004e20
mov edx, dword [0x10098a04]
add esp, 0xc
mov ecx, 0x10098a04
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0xd
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0xe
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov ebp, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x138], 0xf
jge 0x10058af0
push 0x104
lea ecx, [esp + 0x1c]
call fcn.100029f0
mov esi, dword [esp + 0x18]
mov eax, dword [0x10098990]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
jne 0x10058b0a
xor eax, eax
jmp 0x10058b1f
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10058b10
sub eax, edx
js 0x100591cb
cmp eax, dword [esi - 8]
jg 0x100591cb
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x10058b43
or eax, 0xffffffff
jmp 0x10058b45
sub eax, esi
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x20]
call fcn.10008ae0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
mov byte [esp + 0x138], 0x10
je 0x10058bb5
mov edx, dword [edi + 0xc]
test edx, edx
lea ebx, [edi + 0xc]
jl 0x10058ba3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10058ba3
push eax
call fcn.10002a40
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10058b9a
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea ebx, [ebp + 0x10]
mov dword [esp + 0x10], ebx
jmp 0x10058bb5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.100048d0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10058bde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x8c]
push str.theme.xml
push eax
push ebx
lea ecx, [esp + 0x3c]
push str._s_theme_s_s
push ecx
call fcn.10004e20
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
push 0x1388
push 0
push 0
push edi
push edx
call fcn.10021df0
mov ecx, dword [esp + 0xa4]
add esp, 0x28
push 0
push 0
push 0
push 1
push edi
call fcn.100543b0
push 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x64]
push 1
push eax
lea ecx, [esp + 0x9c]
call fcn.10051f40
lea ecx, [esp + 0x90]
call fcn.10051270
push eax
lea ecx, [esp + 0x70]
call fcn.10007c30
mov ebp, dword [esp + 0x70]
cmp ebp, dword [esp + 0x74]
mov byte [esp + 0x138], 0x11
je 0x10058f3b
lea esi, [ebp + 0x14]
mov dword [esp + 0x24], esi
jmp 0x10058c80
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10058ca3
mov eax, dword [esi + 0x38]
mov ecx, dword [esi]
push 0x1388
push 0
push 0
push eax
push ecx
call fcn.10021df0
add esp, 0x14
cmp dword [esi + 0x4c], 1
jne 0x10058f13
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov eax, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0x12
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov byte [esp + 0x138], 0x13
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x3c], esi
mov ebx, dword [esi - 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x138], 0x14
jge 0x10058d2b
push 0x104
lea ecx, [esp + 0x40]
call fcn.100029f0
mov esi, dword [esp + 0x3c]
mov eax, dword [0x10098990]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
jne 0x10058d45
xor eax, eax
jmp 0x10058d5f
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10058d50
sub eax, edx
js 0x100591cb
cmp eax, dword [esi - 8]
jg 0x100591cb
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x10058d83
or eax, 0xffffffff
jmp 0x10058d85
sub eax, esi
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x44]
call fcn.10008ae0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebp - 0x10]
cmp eax, edi
mov byte [esp + 0x138], 0x15
je 0x10058df2
mov edx, dword [edi + 0xc]
test edx, edx
lea ebx, [edi + 0xc]
jl 0x10058de0
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x10058de0
push eax
call fcn.10002a40
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10058dd7
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x28], ebp
jmp 0x10058df2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.100048d0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10058e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx - 0x10]
push eax
push ebp
lea ecx, [esp + 0x58]
push str._smenu_s.txt
push ecx
call fcn.10004e20
mov edx, dword [0x10098a04]
add esp, 0x10
mov ecx, 0x10098a04
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x64], eax
push ebp
lea eax, [esp + 0x68]
push str._smenu
push eax
mov byte [esp + 0x144], 0x16
call fcn.10004e20
mov edi, dword [esp + 0x70]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x50]
push 0x1388
push 0
push 0
push ebx
push eax
call fcn.10021df0
lea eax, [edi - 0x10]
add esp, 0x14
mov byte [esp + 0x138], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10058eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x138], 0x13
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10058ece
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x138], 0x12
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10058ef0
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x138], 0x11
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10058f13
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
add eax, 0x8c
mov dword [esp + 0x24], eax
add eax, 0xffffffec
cmp eax, ecx
jne 0x10058c7c
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, eax
mov byte [esp + 0x138], 0xf
je 0x10058f71
cmp ebp, dword [esp + 0x74]
mov ebx, ebp
je 0x10058f66
mov ecx, ebx
call fcn.10040c60
mov eax, dword [esp + 0x74]
add ebx, 0x8c
cmp ebx, eax
jne 0x10058f51
push ebp
call fcn.10069196
add esp, 4
xor eax, eax
add edi, 0xfffffff0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x138], 0xe
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10058f9f
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10058fc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x138], 0xc
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10058fe7
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005900d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10059033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x138], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10059059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
mov byte [esp + 0x138], 8
add eax, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10059080
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jb 0x100588f3
mov esi, dword [esp + 0x14]
xor ebx, ebx
mov ecx, esi
call fcn.1000de20
push esi
call fcn.10069196
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
add esp, 4
push eax
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x144], 5
call fcn.1002f9f0
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10069196
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x138], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10059104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x138], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005912a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x138], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10059150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x90]
mov byte [esp + 0x138], 1
call fcn.10051b40
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
mov byte [esp + 0x138], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1005918d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xe0]
mov dword [esp + 0x138], 0xffffffff
call fcn.10051b40
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov ecx, dword [esp + 0x14]
jmp fcn.1002cf30
jmp fcn.10001f00
push 0x80070057
call fcn.10001330
int3