Function at 0x10005bf0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1003604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x70]
push eax
call fcn.100013f0
add esp, 4
mov esi, closesocket
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
mov eax, esi
sub eax, ecx
cmp eax, 7
jb 0x100061ab
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push 7
cmovae eax, dword [ebp - 0x70]
push str._system
push ecx
push eax
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
call fcn.100021a0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
sub esi, ecx
cmp esi, 0xb
jb 0x100061ab
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0xb
cmovae eax, dword [ebp - 0x58]
push str._vorbis.ini
push ecx
push eax
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x40]
call fcn.100021a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push 0
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10005cdf
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100061b0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x124]
cmovae eax, dword [ebp - 0x40]
sub esp, 0xc
push eax
call fcn.10007530
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x128], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0xd4], 0
je 0x100061dd
mov edx, str._VORBIS_DETAILS_
lea ecx, [ebp - 0x124]
call fcn.10005180
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
lea ecx, [ebp - 0x28]
call fcn.100012e0
mov esi, eax
mov edx, str.VORBIS
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005d75
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10005dc6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005dbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061ba
push ecx
push edx
call fcn.10008af8
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.100013f0
add esp, 4
mov esi, eax
mov edx, str.DIRECTORY
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005df2
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10005e43
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005e39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061bf
push ecx
push edx
call fcn.10008af8
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.100015a0
mov esi, eax
mov edx, str.USER
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005e6b
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10005ebc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005eb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061c4
push ecx
push edx
call fcn.10008af8
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.10001500
mov esi, eax
mov edx, str.TOTAL_RAM
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005ee4
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10005f35
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005f2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061c9
push ecx
push edx
call fcn.10008af8
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.100016a0
mov esi, eax
mov edx, str.IPv4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005f5d
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10005fae
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005fa4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061ce
push ecx
push edx
call fcn.10008af8
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.100019c0
mov esi, eax
mov edx, str.COUNTRY
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x124]
call fcn.10005180
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x10005fd6
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.10005900
add esp, 4
mov edx, 0x10032778
mov ecx, eax
call fcn.10005180
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10006027
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000601d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061d3
push ecx
push edx
call fcn.10008af8
add esp, 8
lea ecx, [ebp - 0x120]
call fcn.10007430
test eax, eax
jne 0x1000605f
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x124]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002ee0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x120]
call fcn.10006fe0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x128], eax
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0xbc], vtable.std::ios_base.0
call fcn.100081cf
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x10006109
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100060ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061d8
push ecx
push edx
call fcn.10008af8
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x1000614f
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006145
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061d8
push ecx
push edx
call fcn.10008af8
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x10006191
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006187
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100061d8
push ecx
push edx
call fcn.10008af8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100088b8
mov esp, ebp
pop ebp
ret
call fcn.100012d0
mov ecx, str.Failed_to_delete_existing_vorbis.ini_file
call fcn.10005bb0
call fcn.1000ff40
call fcn.1000ff40
call fcn.1000ff40
call fcn.1000ff40
call fcn.1000ff40
call fcn.1000ff40
call fcn.1000ff40
mov ecx, str.VORBIS_was_undefined
call fcn.10005bb0
int3