Function at 0x1009d8d0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1024bef8
push eax
mov eax, 0x1068
mov dword fs:[0], esp
call fcn.1006fb30
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
add eax, 0x34
mov dword [ebp - 0x34], edi
lea esi, [edi + 0x2698]
mov dword [ebp - 0x38], esi
cmp esi, eax
je 0x1009d91b
push dword [ebp + 8]
mov ecx, esi
push dword [eax + 4]
push dword [eax]
call fcn.1002bc40
mov eax, dword [ebp + 8]
mov ecx, esi
add eax, 4
push eax
push dword [esi]
lea eax, [ebp - 0x58]
push eax
call fcn.10030660
mov eax, dword [ebp + 8]
add eax, 0x58
cmp dword [eax + 0x14], 8
jb 0x1009d93d
mov eax, dword [eax]
push 0
push eax
call sym.WMCommon.dll_public:_static_long_long___int64____cdecl_WM::GMStringUtils::ConvertStringToInt64_wchar_t_const___wchar_t_const___
add esp, 8
mov dword [ebp - 0x58], edx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x2690], edx
mov dword [ebp - 0x5c], eax
push 0
mov ecx, dword [edx]
push dword [edi + 0x2674]
push dword [edi + 0x2670]
mov eax, dword [ecx + 4]
mov ecx, edx
call eax
mov ecx, dword [edi + 0x2690]
push dword [edi + 0x266c]
push dword [edi + 0x2668]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 8]
cmp byte [eax + 0xe0], 0
jne 0x1009da4f
mov edi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 4]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1009da4c
xor esi, esi
mov dword [ebp - 0x30], esi
nop dword [eax]
cmp dword [edi + esi + 0x14], 8
lea eax, [edi + esi]
jb 0x1009d9cc
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call sym.WMCommon.dll_private:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMHttpDownload::QueryLocation_wchar_t_const__
mov ecx, dword [ebp - 0x38]
mov esi, eax
mov edi, dword [ecx]
add edi, dword [ebp - 0x30]
cmp edi, esi
je 0x1009da11
mov ecx, edi
call fcn.1001a5a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x2c]
call fcn.1001a5a0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
inc dword [ebp - 0x14]
add esi, 0x18
mov dword [ebp - 0x30], esi
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x1009d9c0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
push dword [ebp + 0xc]
mov ecx, edi
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMHttpDownload::ParseLogFile_wchar_t_const__
test al, al
jne 0x1009daf6
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009da80
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001a600
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1009dac5
and eax, 0xfffffffe
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.1001a5a0
pop edi
mov eax, 0xe0000008
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 0x269c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1009dc78
xor edi, edi
mov dword [ebp - 0x3c], edi
push 0x800
lea eax, [ebp - 0x874]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x1074]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add edi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
add esp, 0x18
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x30], eax
jb 0x1009db68
mov edi, dword [edi]
cmp eax, 8
jae 0x1009db86
movups xmm0, xmmword [edi]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
jmp 0x1009dc1a
mov esi, eax
mov eax, accept
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009dbab
or ecx, 0xffffffff
jmp 0x1009dbb3
cmp ecx, 0x1000
jb 0x1009dbdc
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1006e6a7
add esp, 4
test eax, eax
je 0x1009dd76
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1009dbef
test ecx, ecx
je 0x1009dbed
push ecx
call fcn.1006e6a7
add esp, 4
mov ecx, eax
jmp 0x1009dbef
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp esi, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1074]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x874]
push ecx
push eax
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMHttpDownload::ParseUrl_wchar_t_const___wchar_t___unsigned_short_int___wchar_t__
add esp, 0x10
lea ecx, [ebp - 0x2c]
test al, al
je 0x1009dd7c
call fcn.1001a5a0
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
inc dword [ebp - 0x14]
add edi, 0x18
mov dword [ebp - 0x3c], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x1009db21
mov edi, dword [ebp - 0x34]
lea esi, [edi + 0x2210]
mov dword [ebp - 0x1c], 0
mov ecx, esi
mov dword [ebp - 0x18], 7
xor eax, eax
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009dc97
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001a600
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
cmp byte [ebp - 0xd], 0
jne 0x1009dd98
mov eax, dword [edi + 0x2668]
lea ecx, [edi + 0x2210]
mov esi, dword [edi + 0x266c]
lea edx, [ecx + 2]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009dd10
sub ecx, edx
lea eax, [edi + 0x2210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1001a600
push esi
push dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::CreateEmptyFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___long_long___int64__
add esp, 0xc
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
cmp byte [ebp - 0xd], 0
jne 0x1009dd98
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.1001a5a0
pop edi
mov eax, 0xe0000004
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x2690]
test ecx, ecx
je 0x1009dda9
mov eax, dword [ecx]
push 1
call dword [eax + 0x20]
xor ecx, ecx
mov byte [ebp - 0xd], 0
lea esi, [edi + 0x2698]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
xorps xmm0, xmm0
imul ecx
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x54], 0
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x4c], eax
je 0x1009e04f
xor edi, edi
mov dword [ebp - 0x44], edi
nop dword [eax + eax]
push 0x800
lea eax, [ebp - 0x1074]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x874]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [esi]
add esp, 0x18
add esi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x50
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3c], eax
jb 0x1009de40
mov esi, dword [esi]
cmp eax, 8
jae 0x1009de56
movups xmm0, xmmword [esi]
mov edi, 7
movups xmmword [ebp - 0x2c], xmm0
jmp 0x1009deda
mov edi, eax
mov eax, accept
or edi, 7
cmp edi, 0x7ffffffe
cmova edi, eax
lea eax, [edi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1009de7b
or ecx, 0xffffffff
jmp 0x1009de83
cmp ecx, 0x1000
jb 0x1009deac
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.1006e6a7
add esp, 4
test eax, eax
je 0x1009dd76
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1009debf
test ecx, ecx
je 0x1009debd
push ecx
call fcn.1006e6a7
add esp, 4
mov ecx, eax
jmp 0x1009debf
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
lea eax, [eax*2 + 2]
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x874]
mov dword [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x50]
cmp edi, 8
push ecx
lea ecx, [ebp - 0x1074]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMHttpDownload::ParseUrl_wchar_t_const___wchar_t___unsigned_short_int___wchar_t__
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x2d]
inc dword [ebp - 0x14]
add esp, 0x10
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [ebp - 0x40], xmm0
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x1074]
push eax
call sym.WMCommon.dll_private:_long_int___thiscall_WM::GMHttpDownload::QuerySize_wchar_t_const___unsigned_short_int__wchar_t_const___long_long___int64____bool__
mov esi, eax
test esi, esi
je 0x1009e002
cmp esi, 0xe0000005
jne 0x1009e01f
mov ecx, dword [edi + 0x269c]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x2698]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
cmp dword [ebp - 0x14], eax
jae 0x1009dfe1
mov esi, 0x15
nop dword [eax]
mov ecx, dword [edi + 0x2690]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x1009dfe1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x1009df80
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x44]
inc eax
add edi, 0x18
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], edi
cmp eax, dword [ebp - 0x4c]
jae 0x1009dfca
mov esi, dword [ebp - 0x38]
jmp 0x1009ddf0
pop edi
mov eax, 0xe0000005
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x2c]
mov esi, 0xe0000005
call fcn.1001a5a0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x5c]
mov eax, edx
mov ecx, dword [ebp - 0x58]
or eax, ecx
mov esi, dword [ebp - 0x3c]
je 0x1009e03b
cmp dword [ebp - 0x40], edx
jne 0x1009e01a
cmp esi, ecx
je 0x1009e03b
mov esi, 0xe0000006
lea ecx, [ebp - 0x2c]
call fcn.1001a5a0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov edx, dword [ebp - 0x40]
jmp 0x1009e055
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
cmp dword [edi + 0x2668], edx
jne 0x1009e069
cmp dword [edi + 0x266c], esi
jne 0x1009e069
mov byte [ebp - 0xd], 1
mov ecx, dword [edi + 0x2690]
mov dword [edi + 0x2668], edx
mov dword [edi + 0x266c], esi
push esi
mov eax, dword [ecx]
push edx
call dword [eax]
cmp byte [ebp - 0xd], 0
jne 0x1009e136
push 0x208
lea eax, [ebp - 0x27c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [edi + 0x2008]
add esp, 0xc
lea edx, [ebp - 0x27c]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x1009e0b0
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009e0e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.1001a600
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x27c]
mov ecx, edi
push eax
push dword [ebp + 8]
call sym.WMCommon.dll_public:_long_int___thiscall_WM::GMHttpDownload::Start_struct_WM::GMDownloadXml_const___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_WM::GMHttpDownloadCallback__
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.1001a5a0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [edi + 0x2690]
lea ecx, [edi + 0x2008]
mov edx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0xc], eax
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [edx + 2]
mov dword [ebp + 8], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1009e166
sub edx, dword [ebp + 8]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1001a600
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov ecx, esi
call dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov esi, dword [edi + 0x2690]
lea edx, [edi + 0x2210]
lea ecx, [edx + 2]
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov eax, dword [eax + 0x18]
mov dword [ebp + 8], eax
xor eax, eax
mov word [ebp - 0x2c], ax
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1009e1d0
sub edx, ecx
lea eax, [edi + 0x2210]
sar edx, 1
lea ecx, [ebp - 0x2c]
push edx
push eax
call fcn.1001a600
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push eax
mov ecx, esi
call dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov esi, dword [edi + 0x2690]
lea ecx, [edi + 0x2418]
mov edx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov eax, dword [eax + 0x14]
mov dword [ebp + 0xc], eax
xor eax, eax
mov word [ebp - 0x74], ax
lea eax, [edx + 2]
mov dword [ebp + 8], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1009e240
sub edx, dword [ebp + 8]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x74]
call fcn.1001a600
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 6
push eax
mov ecx, esi
call dword [ebp + 0xc]
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov ecx, edi
call sym.WMCommon.dll_public:_long_int___thiscall_WM::GMHttpDownload::Dispatcher_void_
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc