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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523e61
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], 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 - 0x4c], esi
cmp dword [edi + 4], esi
jle 0x465a69
mov eax, dword [ebx + 0x54]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x465a70
mov edi, vtable.winhttp::receive_buffer.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], esi
lea edx, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], vtable.winhttp::file_receive_buffer.0
mov dword [ebp - 4], 3
push str..part
lea ecx, [ebp - 0x8c]
call fcn.00409590
mov byte [ebp - 4], 4
push eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041f300
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4651c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push esi
push 0x80
push 4
push esi
push 3
push 0xc0000000
cmp ecx, esi
je 0x4651e4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040b380
jmp 0x4651ee
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x465324
call fcn.0040b2d0
cmp eax, esi
jl 0x465846
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, 0xffffffff
jne 0x46522c
call fcn.0040b2d0
cmp eax, esi
jl 0x4658b0
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
push esi
lea ecx, [ebp - 0x90]
push ecx
push edi
push edx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x465260
call fcn.0040b2d0
cmp eax, esi
jl 0x46591e
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x46528e
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00415b90
mov edx, dword [ebx]
mov dword [ebp - 0x24], eax
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [ebp - 0x24], esi
je 0x46595b
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 0x4652ad
mov dword [ebx + 0x3c], 0x19000
mov eax, dword [ebp - 0x34]
or edi, eax
je 0x4652cc
cmp esi, eax
jb 0x465736
ja 0x4652ca
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], ecx
jb 0x465736
xor esi, esi
cmp dword [ebp - 0x4c], esi
jne 0x4654ee
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x38]
mov eax, 0xcccccccd
mul edx
mov edi, edx
shr edi, 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 0x18
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x48]
call fcn.004638c0
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov byte [ebp - 4], 0x19
push 0xffffffffffffffff
push 5
lea ecx, [ebp - 0x74]
call fcn.00463340
jmp 0x465333
mov dword [ebp - 0x14], eax
jmp 0x465204
mov edi, dword [ebp - 0x30]
mov eax, esi
imul eax, edi
add eax, dword [ebp - 0x38]
cmp esi, 4
jne 0x465349
mov ecx, dword [ebp - 0x24]
dec ecx
mov dword [ebp - 0x28], ecx
jmp 0x465350
lea edx, [eax + edi - 1]
mov dword [ebp - 0x28], edx
cmp esi, dword [ebp - 0x44]
jae 0x46599b
mov edx, dword [ebp - 0x48]
mov ecx, esi
shl ecx, 4
sub ecx, esi
lea edi, [edx + ecx*4]
push ebx
lea ecx, [ebx + 0x30]
push ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
push edx
mov edx, dword [ebp - 0x28]
push ecx
push edx
push eax
lea eax, [ebx + 0x1c]
push eax
mov ecx, edi
call fcn.00464e00
mov edi, dword [edi + 0x18]
cmp esi, dword [ebp - 0x70]
jae 0x46599b
mov ecx, dword [ebp - 0x74]
mov dword [ecx + esi*4], edi
inc esi
cmp esi, 5
jl 0x465330
push 0xffffffffffffffff
push 1
mov edx, ecx
push edx
push 5
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [ebp - 0x48]
xor edi, edi
add esi, 8
cmp edi, dword [ebp - 0x44]
jae 0x46599b
cmp byte [esi + 0x30], 0
je 0x46544b
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4653d3
xor eax, eax
jmp 0x4653d5
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x9c]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4653f3
call fcn.0040b2d0
inc edi
add esi, 0x3c
cmp edi, 5
jl 0x4653b5
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x74], 0
je 0x465412
mov edx, dword [ebp - 0x74]
push edx
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0
je 0x465736
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x46543a
mov esi, dword [ebp - 0x48]
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
add esi, 0x3c
dec edi
jne 0x46542a
mov eax, dword [ebp - 0x48]
push eax
call fcn.004eb17a
add esp, 4
jmp 0x465736
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x46546a
push eax
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0
je 0x46549c
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x465490
mov esi, dword [ebp - 0x48]
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x465480
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4654bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x1b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4657ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
jmp 0x4657ce
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebp - 0x24]
cmp eax, ecx
jae 0x465502
mov edi, 1
mov dword [ebp - 0x28], edi
jmp 0x465529
sub eax, dword [ebp - 0x38]
xor edx, edx
div ecx
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
test eax, eax
jns 0x465519
fadd qword [0x531e20]
fadd qword [0x536200]
call fcn.004ed220
mov edi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x54], esi
cmp edi, esi
jle 0x465736
mov ebx, dword [ebx + 0x54]
push 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4659a5
mov ecx, dword [ebp - 0x20]
mov eax, edi
sub eax, esi
mov esi, dword [ecx + 8]
cmp esi, eax
jge 0x46555e
mov dword [ebp - 0x50], esi
jmp 0x465563
mov esi, eax
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 0x22
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x64]
call fcn.004638c0
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x84]
call fcn.00463340
cmp esi, ebx
jle 0x465669
mov esi, dword [ebp - 0x64]
add esi, 0x20
nop
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x3c]
mov edx, dword [ebp - 0x28]
add eax, ebx
mov edi, eax
imul edi, ecx
add edi, dword [ebp - 0x38]
dec edx
cmp eax, edx
jne 0x4655d4
mov ecx, dword [ebp - 0x24]
dec ecx
mov dword [ebp - 0x30], ecx
jmp 0x4655db
lea edx, [ecx + edi - 1]
mov dword [ebp - 0x30], edx
cmp ebx, dword [ebp - 0x60]
jae 0x46599b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0x1c
mov dword [ebp - 0x88], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 0x2c], edx
call fcn.00411c00
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x88]
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.00411c00
mov ecx, dword [ebp - 0x2c]
push 0
push 0
lea edx, [esi - 0x20]
push edx
push 0x464de0
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0x14], edi
call fcn.004ec8e8
add esp, 0x18
mov dword [esi - 8], eax
cmp ebx, dword [ebp - 0x80]
jae 0x46599b
mov ecx, dword [ebp - 0x84]
mov dword [ecx + ebx*4], eax
inc ebx
add esi, 0x3c
cmp ebx, dword [ebp - 0x50]
jl 0x4655b0
mov esi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x50]
push 0xffffffffffffffff
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
test ebx, ebx
jle 0x4656d6
mov esi, dword [ebp - 0x64]
add esi, 8
cmp edi, dword [ebp - 0x60]
jae 0x46599b
cmp byte [esi + 0x30], 0
je 0x4657f6
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4656a8
xor eax, eax
jmp 0x4656aa
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x98]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4656c8
call fcn.0040b2d0
inc edi
add esi, 0x3c
cmp edi, ebx
jl 0x46568a
mov esi, dword [ebp - 0x84]
mov byte [ebp - 4], 0x22
test esi, esi
je 0x4656e7
push esi
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x64], 0
je 0x46571c
cmp dword [ebp - 0x60], 0
jbe 0x465710
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x465700
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004eb17a
add esp, 4
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
add esi, dword [edx + 8]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], esi
cmp esi, edi
jl 0x465534
mov ecx, dword [ebx + 0x20]
lea eax, [ebx + 0x20]
xor esi, esi
cmp dword [ecx - 0xc], esi
je 0x4659f7
mov ecx, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.00411f30
test al, al
jne 0x4659f7
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x40], 0xd
cmp eax, esi
je 0x465774
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4657ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x25
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4657ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x18], vtable.winhttp::receive_buffer.0
mov dword [ebp - 0x4c], eax
cmp eax, dword [edx + 4]
jge 0x465a69
xor esi, esi
jmp 0x465133
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x465818
push eax
call fcn.004eb17a
add esp, 4
mov byte [ebp - 4], 6
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x46571c
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x465840
mov esi, ebx
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
add esi, 0x3c
dec edi
jne 0x465830
push ebx
jmp 0x465714
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 9
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x465892
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 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], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4658da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x4658fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 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], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x11
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x4658eb
mov dword [ebx + 0x58], 2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465985
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x15
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x4658eb
push 0x80070057
call fcn.00406170
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4659c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x1f
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4658fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
jmp 0x4658fc
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x465a08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov ecx, ebx
call edx
mov dword [ebx + 0x58], 3
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465a53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x29
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], al
jmp 0x4658eb
mov dword [ebx + 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