Function at 0x1003c400
Capabilities:
Create thread
Delete file
Get disk size
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100438e8
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x100530b4]
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
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 3
call fcn.1003e7e0
push 1
push 0x10048770
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100072b0
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1003c47b
mov eax, dword [ecx]
jmp 0x1003c47d
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.100076b0
lea ecx, [ebp - 0x20]
call fcn.1003bed0
add esp, 0x18
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x1003c53c
mov ebx, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.100076b0
push 4
push ecx
push 0x10048774
lea ecx, [ebp - 0x38]
call fcn.10005720
cmp eax, 0xffffffff
je 0x1003c4f5
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call ebx
add esp, 4
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x1003c52b
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x1000
jb 0x1003c522
test cl, 0x1f
jne 0x1003c57b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1003c57b
sub ecx, eax
cmp ecx, 4
jb 0x1003c57b
cmp ecx, 0x23
ja 0x1003c57b
mov ecx, eax
push ecx
call fcn.1003edf4
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x1003c4b0
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 4
test esi, esi
je 0x1003c5c9
push dword [ebp - 0x338]
mov edx, edi
push ecx
mov ecx, esi
call fcn.100062f0
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x20]
add esp, 8
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x1003c581
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x1003c5c0
test bl, 0x1f
je 0x1003c599
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x1003c5a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ebx, eax
cmp ebx, 4
jae 0x1003c5b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, 0x23
jbe 0x1003c5be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, eax
push ebx
call fcn.1003edf4
add esp, 4
mov eax, dword [0x10055228]
mov ecx, dword [ebp + 8]
mov dword [0x1005522c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003c5e1
lock inc dword [eax + 4]
mov esi, dword [0x100553f4]
or ebx, 0xffffffff
mov dword [0x100553f4], eax
mov dword [0x100553f0], ecx
test esi, esi
je 0x1003c628
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c628
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c628
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c626
push 1
call dword [eax + 8]
jmp 0x1003c628
call edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
test eax, eax
je 0x1003c636
lock inc dword [eax + 4]
mov esi, dword [0x100553ec]
mov dword [0x100553ec], eax
mov dword [0x100553e8], ecx
test esi, esi
je 0x1003c67a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c67a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c67a
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c678
push 1
call dword [eax + 8]
jmp 0x1003c67a
call edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test eax, eax
je 0x1003c688
lock inc dword [eax + 4]
mov esi, dword [0x100553dc]
mov dword [0x100553dc], eax
mov dword [0x100553d8], ecx
test esi, esi
je 0x1003c6cc
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c6cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c6cc
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c6ca
push 1
call dword [eax + 8]
jmp 0x1003c6cc
call edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x1003c6da
lock inc dword [eax + 4]
mov esi, dword [0x100553e4]
mov dword [0x100553e4], eax
mov dword [0x100553e0], ecx
test esi, esi
je 0x1003c71e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c71e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c71e
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c71c
push 1
call dword [eax + 8]
jmp 0x1003c71e
call edx
push ecx
mov ecx, dword [0x100553f0]
call fcn.10008450
mov eax, dword [0x100553d8]
push str.Checking_files...
mov dword [eax + 0x70], 0xbf
mov dword [eax + 0x74], 0xbf
mov dword [eax + 0x78], 0xbf
mov ecx, dword [0x100553d8]
call fcn.1001fc80
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x334], esi
test esi, esi
je 0x1003c768
lock inc dword [esi + 4]
mov edx, dword [0x100553d8]
mov dword [ebp - 0x344], esi
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x14], edx
test ecx, ecx
mov byte [ebp - 4], 6
setne al
test al, al
jne 0x1003c7c7
mov byte [ebp - 4], 4
test esi, esi
je 0x1003c829
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c829
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c829
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c827
push 1
call dword [eax + 8]
jmp 0x1003c829
mov eax, dword [edx + 0x20]
mov edi, dword [ecx + 0x10]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x14]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub eax, esi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x18], eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x334]
test esi, esi
je 0x1003c829
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c829
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c829
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c827
push 1
call dword [eax + 8]
jmp 0x1003c829
call edx
push 0xd
push 0x10048790
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.10007ac0
push 0x50
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x330]
call fcn.10011cf0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x1003c875
inc eax
push eax
push dword [ebp - 0x38]
call fcn.100079c0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0xf
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x330]
mov byte [ebp - 0x38], 0
movlpd qword [ebp - 0x260], xmm0
mov dword [ebp - 0x258], 0x493e0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 2
mov dword [ebp - 0x24c], 0
movlpd qword [ebp - 0x248], xmm0
mov dword [ebp - 0x240], 2
mov dword [ebp - 0x23c], 0
movlpd qword [ebp - 0x238], xmm0
movq qword [ebp - 0x58], xmm0
call fcn.1003be20
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x58]
test ecx, ecx
setne al
test al, al
je 0x1003d0c2
cmp dword [ecx + 0x18], 0xc8
jne 0x1003d0c2
cmp dword [ecx + 0x34], 0
je 0x1003d019
push 0x38
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0xc8]
call fcn.1002b5f0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x58]
add eax, 0x24
cmp dword [eax + 0x14], 0x10
jb 0x1003c94b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
call fcn.1002e110
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor edi, edi
movq qword [ebp - 0x20], xmm0
xor eax, eax
movlpd qword [ebp - 0x348], xmm0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0xc8]
call fcn.1003e330
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax + 8]
mov eax, dword [eax]
shl eax, 4
add eax, ebx
mov dword [ebp - 0x33c], eax
cmp ebx, eax
je 0x1003cb11
nop
push 0x38
call fcn.1003edf9
push 0x38
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov dword [esi + 0x10], 0
add esp, 0x10
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1003c9ec
mov eax, dword [esi]
jmp 0x1003c9ee
mov eax, esi
mov byte [eax], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x2c], 0xf
cmp dword [esi + 0x2c], 0x10
mov dword [esi + 0x28], 0
jb 0x1003ca18
mov eax, dword [esi + 0x18]
jmp 0x1003ca1b
lea eax, [esi + 0x18]
push str.Name
mov ecx, ebx
mov byte [eax], 0
mov dword [ebp - 0x334], esi
call fcn.1002dd70
mov edx, eax
mov eax, 0x1000
test word [edx + 0xe], ax
jne 0x1003ca40
mov edx, dword [edx + 8]
cmp byte [edx], 0
jne 0x1003ca49
xor ecx, ecx
jmp 0x1003ca5b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ca51
sub ecx, dword [ebp - 0x14]
push ecx
push edx
mov ecx, esi
call fcn.10007ac0
push str.Hash
mov ecx, ebx
call fcn.1002dd70
mov edx, eax
mov eax, 0x1000
test word [edx + 0xe], ax
jne 0x1003ca80
mov edx, dword [edx + 8]
cmp byte [edx], 0
jne 0x1003ca89
xor ecx, ecx
jmp 0x1003ca9b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ca91
sub ecx, dword [ebp - 0x14]
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.10007ac0
push str.Size
mov ecx, ebx
call fcn.1002dd70
push 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ecx
mov dword [esi + 0x30], ecx
mov ecx, esi
push 0x10048810
mov dword [esi + 0x34], eax
call fcn.10005720
cmp eax, 0xffffffff
je 0x1003cae7
cmp esi, 0x10055210
je 0x1003cae7
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x10055210
call fcn.100076b0
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002b7e0
add ebx, 0x10
cmp ebx, dword [ebp - 0x33c]
jne 0x1003c9b0
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x340], eax
lea ecx, [ebp - 0x50]
call fcn.1003e7e0
mov byte [ebp - 4], 0xf
mov esi, edi
mov dword [ebp - 0x33c], esi
cmp edi, dword [ebp - 0x1c]
je 0x1003ce2c
nop
mov ebx, dword [esi]
lea ecx, [ebp - 0x50]
push 1
push 0x10048818
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x14], ebx
call fcn.100072b0
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x50]
call fcn.100071c0
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
cmovae ecx, dword [ebp - 0x50]
call fcn.1000ab40
mov edi, eax
test edi, edi
je 0x1003cdac
cmp dword [edi], 0
je 0x1003cdac
push 0x10
call fcn.1003edc8
mov edx, dword [edi + 0x10]
add edx, dword [edi + 8]
mov ecx, dword [edi]
push eax
mov dword [ebp - 0x334], eax
call fcn.10032130
push dword [edi]
call fcn.1003edc3
add esp, 0xc
lea ecx, [ebp - 0x38]
push 0x10047807
call fcn.10007bc0
push 3
mov byte [ebp - 4], 0x11
call fcn.1003edc8
mov esi, dword [ebp - 0x334]
add esp, 4
mov edi, eax
xor ebx, ebx
movzx ecx, byte [ebx + esi]
push ecx
push 0x1004881c
push edi
call fcn.10003960
add esp, 0xc
mov byte [edi + 2], 0
cmp byte [edi], 0
jne 0x1003cbe4
xor eax, eax
jmp 0x1003cbf9
mov eax, edi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003cbf0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.100072b0
inc ebx
cmp ebx, 0x10
jl 0x1003cbc4
mov eax, dword [ebp - 0x334]
push eax
mov byte [eax + 0xf], 0
call fcn.1003edc3
push edi
call fcn.1003edc3
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
mov esi, dword [ebp - 0x33c]
lea ebx, [ebp - 0x38]
add esp, 8
cmp dword [ebp - 0x24], 0x10
cmovae ecx, dword [ebp - 0x38]
add eax, ecx
cmp dword [ebp - 0x24], 0x10
mov ecx, eax
cmovae ebx, dword [ebp - 0x38]
xor edx, edx
sub ecx, ebx
xor edi, edi
cmp ebx, eax
cmova ecx, edx
test ecx, ecx
je 0x1003cc73
mov esi, ecx
movsx eax, byte [ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
inc edi
mov byte [ebx], al
add esp, 4
lea ebx, [ebx + 1]
cmp edi, esi
jne 0x1003cc56
mov esi, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x338]
lea ecx, [ebp - 0x88]
push 0xffffffffffffffff
add eax, 0x18
mov dword [ebp - 0x74], 0xf
push 0
push eax
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.100076b0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x88]
cmovae eax, dword [ebp - 0x38]
cmp dword [ebp - 0x74], 0x10
cmovae ecx, dword [ebp - 0x88]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1003cce1
test dl, dl
je 0x1003ccdd
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1003cce1
add ecx, 2
add eax, 2
test dl, dl
jne 0x1003ccc1
xor eax, eax
jmp 0x1003cce6
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003cd96
lea eax, [ebp - 0x14]
mov ecx, 0x10055228
push eax
call fcn.1002b7e0
lea ecx, [ebp - 0x360]
call fcn.1003e7e0
mov edi, eax
lea eax, [ebp - 0x50]
cmp eax, edi
je 0x1003cd3d
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cd22
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100079c0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.100073d0
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003cd55
inc eax
push eax
push dword [ebp - 0x360]
call fcn.100079c0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x1003cd6a
inc eax
push eax
push dword [ebp - 0x88]
call fcn.100079c0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1003ce17
inc eax
push eax
push dword [ebp - 0x38]
jmp 0x1003ce12
lea ecx, [ebp - 0x360]
call fcn.1003e7e0
push eax
lea ecx, [ebp - 0x50]
call fcn.10006fe0
jmp 0x1003cd3d
lea eax, [ebp - 0x14]
mov ecx, 0x10055228
push eax
call fcn.1002b7e0
lea ecx, [ebp - 0x360]
call fcn.1003e7e0
mov edi, eax
lea eax, [ebp - 0x50]
cmp eax, edi
je 0x1003cdfb
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cde0
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100079c0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.100073d0
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003ce17
inc eax
push eax
push dword [ebp - 0x360]
call fcn.100079c0
add esi, 4
mov dword [ebp - 0x33c], esi
cmp esi, dword [ebp - 0x1c]
jne 0x1003cb30
mov edi, dword [ebp - 0x20]
mov eax, dword [0x1005522c]
sub eax, dword [0x10055228]
sar eax, 2
push eax
push str.Files_to_update:__d_n
call fcn.1000d010
mov ecx, dword [0x1005522c]
add esp, 8
mov eax, dword [0x10055228]
mov edx, ecx
sub edx, eax
test edx, 0xfffffffc
jne 0x1003cef1
mov ecx, dword [0x100553d8]
push str.Client_Epic
call fcn.1001fc80
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009160
mov ecx, dword [0x100553d8]
push 3
call fcn.10009540
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
call fcn.1000e4c0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cec5
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100079c0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test edi, edi
je 0x1003cfe1
mov eax, dword [ebp - 0x340]
sub eax, edi
sar eax, 2
push eax
push edi
jmp 0x1003cfdc
mov ebx, dword [ebp - 0x348]
mov edx, ecx
sub edx, eax
xor edi, edi
add edx, 3
xor esi, esi
shr edx, 2
cmp eax, ecx
cmova edx, edi
mov edi, dword [ebp - 0x344]
test edx, edx
je 0x1003cf24
mov ecx, dword [eax]
lea eax, [eax + 4]
add ebx, dword [ecx + 0x30]
adc edi, dword [ecx + 0x34]
inc esi
cmp esi, edx
jne 0x1003cf14
lea ecx, [ebp - 0x360]
call fcn.1003e7e0
cmp dword [eax + 0x14], 0x10
jb 0x1003cf37
mov eax, dword [eax]
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 0x34c]
mov esi, eax
cmp ecx, 0x10
jb 0x1003cf6d
inc ecx
push ecx
push dword [ebp - 0x360]
call fcn.100079c0
test esi, esi
je 0x1003d075
cmp dword [ebp - 0x8c], edi
jb 0x1003d075
ja 0x1003cf8f
cmp dword [ebp - 0x90], ebx
jb 0x1003d075
push 0
push 0
push 0
push 0x1003d420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cfb6
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100079c0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test ecx, ecx
je 0x1003cfe1
mov eax, dword [ebp - 0x340]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000cd10
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x1003cffd
mov ecx, esi
call fcn.1002c120
push 0x14
push esi
call fcn.1003f02b
add esp, 8
push dword [ebp - 0xa8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 1
push dword [ebp - 0xac]
call fcn.1003f02b
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.100038a0
lea ecx, [ebp - 0x330]
call fcn.10012070
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1003d03e
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100079c0
lea ecx, [ebp + 8]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.100038a0
lea ecx, [ebp + 0x10]
call fcn.100038a0
lea ecx, [ebp + 0x18]
call fcn.100038a0
lea ecx, [ebp + 0x20]
call fcn.100038a0
jmp 0x1003d3fa
mov ecx, dword [0x100553d8]
push str.No_space_left_on_disk._nClosing_in_2_seconds.
call fcn.1001fc80
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009160
mov ecx, dword [0x100553d8]
push 3
call fcn.10009540
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x98
lea eax, [ebp - 0x170]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0x170]
call fcn.100372e0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x58]
test ecx, ecx
setne al
test al, al
jne 0x1003d0f8
or eax, 0xffffffff
jmp 0x1003d0fb
mov eax, dword [ecx + 0x18]
push eax
mov edx, str.Error:_Failed_to_check_update__
lea ecx, [ebp - 0x170]
call fcn.10005d60
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str.__nTrying_again_in_5_seconds.
mov ecx, eax
call fcn.10005d60
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x170]
call fcn.100372c0
cmp dword [eax + 0x14], 0x10
jb 0x1003d13a
mov eax, dword [eax]
push eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.1003e730
mov eax, dword [ebp - 0x34c]
add esp, 8
cmp eax, 0x10
jb 0x1003d167
inc eax
push eax
push dword [ebp - 0x360]
call fcn.100079c0
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x170]
call fcn.100372c0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1003d185
mov eax, dword [eax]
mov ecx, dword [0x100553d8]
push eax
call fcn.1001fc80
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003d1ad
inc eax
push eax
push dword [ebp - 0x360]
call fcn.100079c0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009160
mov ecx, dword [0x100553d8]
push 3
call fcn.10009540
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.10009160
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.10009160
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10009160
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10009160
call fcn.1003c400
mov eax, dword [ebp - 0x170]
add esp, 0x20
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x174], eax
lea ecx, [ebp - 0x16c]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.10006e30
lea ecx, [ebp - 0x16c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x168]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x120]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x1003d2f4
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d2f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d2f4
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d2f2
push 1
call dword [eax + 8]
jmp 0x1003d2f4
call edx
lea ecx, [ebp - 0x330]
call fcn.10012070
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1003d311
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100079c0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
test esi, esi
je 0x1003d359
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d359
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d359
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d357
push 1
call dword [eax + 8]
jmp 0x1003d359
call edx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1003d38f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d38f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d38f
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d38d
push 1
call dword [eax + 8]
jmp 0x1003d38f
call edx
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x1003d3c5
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d3c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d3c5
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d3c3
push 1
call dword [eax + 8]
jmp 0x1003d3c5
call edx
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1003d3fa
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d3fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1003d3fa
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d3f8
push 1
call dword [eax + 8]
jmp 0x1003d3fa
call edx
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.1003ea82
mov esp, ebp
pop ebp
ret