Function at 0x1001d0b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100838d9
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x100ae5f0]
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
mov edi, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov byte [ebp - 0x49], 0
xor eax, eax
push 0xa
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.DownAvatar
mov word [ecx], ax
call fcn.100067f0
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.1001d860
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
mov edx, 1
test esi, esi
je 0x1001d1d3
cmp dword [ebp - 0x20], 8
mov eax, esi
cmovae ecx, dword [ebp - 0x34]
cmp esi, edx
cmova eax, edx
push eax
push 0x1008981c
push ecx
call fcn.10018c40
add esp, 0xc
test eax, eax
jne 0x1001d169
cmp esi, 1
jb 0x1001d169
ja 0x1001d169
lea ecx, [ebp - 0x34]
call fcn.10006580
mov bl, 1
jmp 0x1001d6ed
push 1
push 2
lea ecx, [ebp - 0xf4]
call fcn.1000d1f0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
push 0x10089820
push eax
call fcn.1000cac0
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov eax, 0x100889ec
cmovae ecx, dword [ebp - 0x34]
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.1000cac0
add esp, 0x10
lea eax, [ebp - 0xf4]
push eax
call fcn.1000e210
mov ecx, eax
call fcn.100065e0
lea ecx, [ebp - 0xf4]
call fcn.1000df40
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.10006580
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp + 8]
push eax
call fcn.10007160
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
jne 0x1001d229
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x1001d229
mov eax, dword [ecx]
call dword [eax + 4]
add eax, 0x8c
cmp dword [eax + 0x14], 8
jb 0x1001d21d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001ab80
mov eax, dword [ebp - 0x18]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x1001d6d5
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
cmp ecx, edx
je 0x1001d6d5
nop word [eax + eax]
mov al, byte [ecx]
mov byte [ebp - 0x40], al
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
lea eax, [ecx + 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.10018bb0
cmp dword [ebp - 0x20], 8
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 4
cmovae esi, dword [ebp - 0x34]
mov dword [ebp - 0x14], 0
call fcn.100086e0
test eax, eax
je 0x1001d752
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test esi, esi
je 0x1001d366
test esi, 0xffff0000
jne 0x1001d350
movzx esi, si
push 0
push esi
call fcn.10012140
mov edi, eax
add esp, 8
test edi, edi
je 0x1001d372
mov ecx, esi
shr ecx, 4
push 6
inc ecx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001d372
push esi
push eax
push edi
call fcn.10008cd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1001d372
mov ecx, dword [ebp - 0x14]
mov edx, 1
movzx esi, word [ebx]
mov edi, esi
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x1001d31e
push edi
lea ecx, [ebp - 0x14]
call fcn.100089e0
movzx esi, word [ebx]
mov ecx, dword [ebp - 0x14]
movzx edx, si
lea eax, [ebx + 2]
push edx
push eax
push edi
push ecx
call fcn.1005e746
push eax
call fcn.100083a0
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x1001d748
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edi*2], cx
jmp 0x1001d372
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d355
sub ecx, edx
sar ecx, 1
jmp 0x1001d368
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.10008b30
mov eax, dword [ebp - 0x14]
mov edi, str..tmp
sub edi, eax
mov byte [ebp - 4], 6
push 4
push str..tmp
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x5c], str..tmp
sar edi, 1
call fcn.1005a75f
mov ecx, 0x7fffffff
mov dword [ebp - 0x50], eax
sub ecx, eax
add esp, 8
cmp ecx, ebx
jl 0x1001d748
lea esi, [eax + ebx]
test esi, esi
js 0x1001d748
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1001d3d8
push esi
lea ecx, [ebp - 0x14]
call fcn.100089e0
mov eax, dword [ebp - 0x14]
lea edx, [eax + edi*2]
cmp edi, ebx
jbe 0x1001d3e2
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
lea eax, [eax + ebx*2]
add ecx, ecx
push ecx
push edx
push ecx
push eax
call fcn.1000b840
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x1001d748
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x14]
mov word [eax + esi*2], cx
xor esi, esi
or ebx, 0xffffffff
nop dword [eax]
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1001d505
push 1
push 2
lea ecx, [ebp - 0xf4]
call fcn.1000d1f0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 7
push str.DeleteFile_:
push eax
call fcn.1000dc20
mov eax, dword [ebp - 0x14]
mov ecx, 0x100889ec
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0xf4]
push ecx
push eax
call fcn.1000cac0
lea eax, [ebp - 0xf4]
push str._failed__GetLastError_
push eax
call fcn.1000dc20
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xf4]
call fcn.10016100
mov ecx, dword [0x100b2a88]
test ecx, ecx
jne 0x1001d4ee
push 0x100ae170
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b2a88], 0
jne 0x1001d4dd
push 4
call fcn.10026118
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1001d4ce
mov dword [eax], 0
mov dword [eax], 0
jmp 0x1001d4d0
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x44]
lock or dword [ecx], edx
mov dword [0x100b2a88], eax
push 0x100ae170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b2a88]
lea eax, [ebp - 0xf4]
push eax
call fcn.100065e0
lea ecx, [ebp - 0xf4]
call fcn.1000df40
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
call fcn.100086e0
test eax, eax
je 0x1001d752
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0
push 0x2710
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000c460
add esp, 0x14
test eax, eax
jne 0x1001d625
push 1
push 2
lea ecx, [ebp - 0xf4]
call fcn.1000d1f0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 0xa
push str.download_user_logo_pic_fail_one_time.
push eax
call fcn.1000dc20
mov ecx, dword [0x100b2a88]
add esp, 8
test ecx, ecx
jne 0x1001d5d5
push 0x100ae170
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b2a88], 0
jne 0x1001d5c4
push 4
call fcn.10026118
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1001d5b5
mov dword [eax], 0
mov dword [eax], 0
jmp 0x1001d5b7
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x48]
lock or dword [ecx], edx
mov dword [0x100b2a88], eax
push 0x100ae170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b2a88]
lea eax, [ebp - 0xf4]
push eax
call fcn.100065e0
lea ecx, [ebp - 0xf4]
call fcn.1000df40
add esi, 0x1f4
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0x5dc
jl 0x1001d420
jmp 0x1001d668
push dword [ebp - 0x40]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [ebp - 0x3c]
cmovae eax, dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call fcn.1001cc00
add esp, 0x14
push dword [ebp - 0x14]
call edi
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 0x49], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d668
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001d682
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1001d6c0
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d6b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d743
push edx
push ecx
call fcn.10026148
add esp, 8
mov ecx, dword [ebp - 0x54]
add ecx, 0x24
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x58]
jne 0x1001d250
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001d6ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0x49]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x1001d723
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d719
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d743
push edx
push ecx
call fcn.10026148
add esp, 8
mov al, bl
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.100264b9
mov esp, ebp
pop ebp
ret 0x18
call fcn.1005a543
push 0x80070057
call fcn.10008440
push 0x80004005
call fcn.10008440
int3