Function at 0x466040
Capabilities:
Create thread
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da2bc
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
mov ecx, dword [ebx + 0x50]
push ecx
call esi
xor esi, esi
mov dword [ebp - 0x70], esi
cmp dword [edi + 4], esi
jle 0x466af4
mov eax, dword [ebx + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x466afe
mov edi, vtable.winhttp::receive_buffer.0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], esi
lea edx, [ebp - 0x38]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x3c], vtable.winhttp::file_receive_buffer.0
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 4
push str..part
lea ecx, [ebp - 0xa0]
call fcn.00409830
mov byte [ebp - 4], 5
push eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004225e0
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46612f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x34]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
cmp ecx, esi
je 0x466151
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040b710
jmp 0x46615b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46629d
call fcn.0040b660
cmp eax, esi
jl 0x46683b
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0xffffffff
jne 0x466199
call fcn.0040b660
cmp eax, esi
jl 0x4668c2
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x48]
push esi
lea ecx, [ebp - 0xa4]
push ecx
push edi
push edx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4661cd
call fcn.0040b660
cmp eax, esi
jl 0x46694d
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x4661fb
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.00419f20
mov edx, dword [ebx]
mov dword [ebp - 0x1c], eax
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [ebp - 0x1c], esi
je 0x46699a
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
cmp dword [ebx + 0x3c], esi
jne 0x46621a
mov dword [ebx + 0x3c], 0x19000
mov ecx, edi
or ecx, dword [ebp - 0x48]
je 0x466240
cmp esi, dword [ebp - 0x48]
jb 0x466743
ja 0x466238
mov edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x1c], edx
jb 0x466743
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [ebp - 0x70], esi
jne 0x4664c3
mov ecx, dword [ebp - 0x1c]
sub ecx, edi
mov eax, 0xcccccccd
mul ecx
mov ebx, edx
shr ebx, 2
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x15
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x6c]
call fcn.00463da0
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 0x16
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x88]
call fcn.00463920
jmp 0x4662a8
mov dword [ebp - 0x38], eax
jmp 0x466171
mov edi, dword [ebp - 0x4c]
mov eax, esi
imul eax, ebx
add eax, edi
cmp esi, 4
jne 0x4662ba
mov ecx, dword [ebp - 0x1c]
dec ecx
jmp 0x4662be
lea ecx, [eax + ebx - 1]
cmp esi, dword [ebp - 0x68]
jae 0x4669e7
mov edi, dword [ebp - 0x6c]
mov edx, esi
shl edx, 4
sub edx, esi
lea edi, [edi + edx*4]
mov edx, dword [ebp + 8]
push edx
add edx, 0x30
push edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
push edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
push edx
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, edi
call fcn.00465d60
mov edi, dword [edi + 0x18]
cmp esi, dword [ebp - 0x84]
jae 0x4669e7
mov ecx, dword [ebp - 0x88]
mov dword [ecx + esi*4], edi
inc esi
cmp esi, 5
jl 0x4662a5
push 0xffffffffffffffff
push 1
mov edx, ecx
push edx
push 5
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], 0
add ebx, 8
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x18], esi
jae 0x4669e7
cmp byte [ebx + 0x30], 0
je 0x4663f4
mov edi, dword [ebx + 4]
test edi, edi
jne 0x466355
xor esi, esi
jmp 0x466357
mov esi, dword [ebx]
mov ecx, dword [ebp - 0x38]
push 0
lea eax, [ebp - 0xb0]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x466375
call fcn.0040b660
cmp byte [ebp - 0x30], 0
je 0x466390
mov edx, dword [ebp + 8]
push edx
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.004143b0
mov eax, dword [ebp - 0x18]
inc eax
add ebx, 0x3c
mov dword [ebp - 0x18], eax
cmp eax, 5
jl 0x466334
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x88], 0
je 0x4663bb
mov edx, dword [ebp - 0x88]
push edx
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], 0
je 0x466743
mov edi, dword [ebp - 0x68]
test edi, edi
je 0x4663e3
mov esi, dword [ebp - 0x6c]
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
add esi, 0x3c
dec edi
jne 0x4663d3
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004aaaaa
add esp, 4
jmp 0x466743
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x88]
xor edi, edi
cmp eax, edi
je 0x466418
push eax
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], edi
je 0x46644e
cmp esi, edi
jbe 0x466440
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
jmp 0x466430
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x466430
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004aaaaa
add esp, 4
xor edi, edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x466488
push eax
call fcn.004aa533
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x4664b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], vtable.winhttp::receive_buffer.0
jmp 0x4667cb
mov ebx, dword [ebx + 0x3c]
cmp dword [ebp - 0x1c], ebx
jae 0x4664d5
mov edi, 1
mov dword [ebp - 0x74], edi
jmp 0x4664fe
mov eax, dword [ebp - 0x1c]
sub eax, edi
xor edx, edx
div ebx
mov dword [ebp - 0x44], eax
fild dword [ebp - 0x44]
test eax, eax
jns 0x4664ee
fadd qword [0x4e7e80]
fadd qword [0x4ec380]
call fcn.004aceb0
mov edi, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], esi
cmp edi, esi
jle 0x466743
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4669f1
mov eax, edi
sub eax, esi
mov esi, dword [ebx + 8]
cmp esi, eax
jge 0x466536
mov dword [ebp - 0x18], esi
jmp 0x46653b
mov esi, eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 0x1d
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x5c]
call fcn.00463da0
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 4], 0x1e
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x98]
call fcn.00463920
cmp esi, ebx
jle 0x46664c
mov esi, dword [ebp - 0x5c]
add esi, 0x20
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ebp - 0x74]
add eax, ebx
mov edi, eax
imul edi, ecx
add edi, dword [ebp - 0x4c]
dec edx
cmp eax, edx
jne 0x4665b4
mov ecx, dword [ebp - 0x1c]
dec ecx
mov dword [ebp - 0x40], ecx
jmp 0x4665bb
lea edx, [ecx + edi - 1]
mov dword [ebp - 0x40], edx
cmp ebx, dword [ebp - 0x58]
jae 0x4669e7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 0x9c], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], edx
call fcn.00412bf0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x9c]
mov dword [esi], edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x30]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0x10]
mov dword [esi - 4], edx
call fcn.00412bf0
mov ecx, dword [ebp - 0x44]
push 0
push 0
lea edx, [esi - 0x20]
push edx
push 0x465d40
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edi
call fcn.004ac218
add esp, 0x18
mov dword [esi - 8], eax
cmp ebx, dword [ebp - 0x94]
jae 0x4669e7
mov ecx, dword [ebp - 0x98]
mov dword [ecx + ebx*4], eax
inc ebx
add esi, 0x3c
cmp ebx, dword [ebp - 0x18]
jl 0x466590
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0x18]
push 0xffffffffffffffff
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x40], 0
test esi, esi
jle 0x4666e3
mov ebx, dword [ebp - 0x5c]
add ebx, 8
mov esi, dword [ebp - 0x58]
cmp dword [ebp - 0x40], esi
jae 0x4669e7
cmp byte [ebx + 0x30], 0
je 0x4667e8
mov edi, dword [ebx + 4]
test edi, edi
jne 0x466693
xor esi, esi
jmp 0x466695
mov esi, dword [ebx]
mov eax, dword [ebp - 0x38]
push 0
lea edx, [ebp - 0xac]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4666b3
call fcn.0040b660
cmp byte [ebp - 0x30], 0
je 0x4666ce
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
push ecx
lea eax, [esi + edi]
push eax
push esi
push edx
lea ecx, [ebp - 0x2c]
call fcn.004143b0
mov eax, dword [ebp - 0x40]
inc eax
add ebx, 0x3c
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x18]
jl 0x466672
mov edi, dword [ebp - 0x98]
mov byte [ebp - 4], 0x1d
test edi, edi
je 0x4666f4
push edi
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x5c], 0
je 0x46672c
cmp dword [ebp - 0x58], 0
jbe 0x466720
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x466710
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004aaaaa
add esp, 4
mov esi, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x14]
add esi, dword [ebx + 8]
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x78], esi
cmp esi, edi
jl 0x46650c
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x20]
lea eax, [esi + 0x20]
xor edi, edi
cmp dword [edx - 0xc], edi
je 0x466a37
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00413200
test al, al
jne 0x466a37
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x40], 0xd
cmp eax, edi
je 0x466784
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], edi
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4667bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00413170
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x70], eax
cmp eax, dword [ecx + 4]
jge 0x466af4
mov ebx, dword [ebp + 8]
xor esi, esi
jmp 0x466093
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x46680a
push eax
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x5c], 0
je 0x46672c
test esi, esi
je 0x466832
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
add esi, 0x3c
dec edi
jne 0x466822
mov eax, dword [ebp - 0x5c]
push eax
jmp 0x466724
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x46687c
push eax
call fcn.004aa533
add esp, 4
mov al, 0xa
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], al
lea ecx, [ebp - 0x38]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x4668a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4668ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x466903
push eax
call fcn.004aa533
add esp, 4
mov al, 0xf
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], al
lea ecx, [ebp - 0x38]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x38]
cmp eax, esi
je 0x46692b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], vtable.winhttp::receive_buffer.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x466977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00413170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4669c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00413170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406170
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00413170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x466a48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov dword [esi + 0x58], 3
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x22
mov eax, dword [ebp - 0x2c]
cmp eax, edi
je 0x466aaa
push eax
call fcn.004aa533
add esp, 4
mov al, 0x21
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], al
lea ecx, [ebp - 0x38]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x466ad2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], vtable.winhttp::receive_buffer.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x58], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4