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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043a68
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.1003e960
push 1
push 0x10048770
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.10007410
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 0x1003c5fb
mov eax, dword [ecx]
jmp 0x1003c5fd
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.10007810
lea ecx, [ebp - 0x20]
call fcn.1003c050
add esp, 0x18
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x1003c6bc
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.10007810
push 4
push ecx
push 0x10048774
lea ecx, [ebp - 0x38]
call fcn.10005880
cmp eax, 0xffffffff
je 0x1003c675
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 0x1003c6ab
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x1000
jb 0x1003c6a2
test cl, 0x1f
jne 0x1003c6fb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1003c6fb
sub ecx, eax
cmp ecx, 4
jb 0x1003c6fb
cmp ecx, 0x23
ja 0x1003c6fb
mov ecx, eax
push ecx
call fcn.1003ef74
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x1003c630
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 4
test esi, esi
je 0x1003c749
push dword [ebp - 0x338]
mov edx, edi
push ecx
mov ecx, esi
call fcn.10006450
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 0x1003c701
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 0x1003c740
test bl, 0x1f
je 0x1003c719
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 0x1003c726
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ebx, eax
cmp ebx, 4
jae 0x1003c733
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, 0x23
jbe 0x1003c73e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, eax
push ebx
call fcn.1003ef74
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 0x1003c761
lock inc dword [eax + 4]
mov esi, dword [0x100553f4]
or ebx, 0xffffffff
mov dword [0x100553f4], eax
mov dword [0x100553f0], ecx
test esi, esi
je 0x1003c7a8
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c7a8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c7a8
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c7a6
push 1
call dword [eax + 8]
jmp 0x1003c7a8
call edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
test eax, eax
je 0x1003c7b6
lock inc dword [eax + 4]
mov esi, dword [0x100553ec]
mov dword [0x100553ec], eax
mov dword [0x100553e8], ecx
test esi, esi
je 0x1003c7fa
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c7fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c7fa
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c7f8
push 1
call dword [eax + 8]
jmp 0x1003c7fa
call edx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
test eax, eax
je 0x1003c808
lock inc dword [eax + 4]
mov esi, dword [0x100553dc]
mov dword [0x100553dc], eax
mov dword [0x100553d8], ecx
test esi, esi
je 0x1003c84c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c84c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c84c
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c84a
push 1
call dword [eax + 8]
jmp 0x1003c84c
call edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x1003c85a
lock inc dword [eax + 4]
mov esi, dword [0x100553e4]
mov dword [0x100553e4], eax
mov dword [0x100553e0], ecx
test esi, esi
je 0x1003c89e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c89e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c89e
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c89c
push 1
call dword [eax + 8]
jmp 0x1003c89e
call edx
push ecx
mov ecx, dword [0x100553f0]
call fcn.100085d0
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.1001fe20
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x334], esi
test esi, esi
je 0x1003c8e8
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 0x1003c947
mov byte [ebp - 4], 4
test esi, esi
je 0x1003c9a9
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c9a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c9a9
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c9a7
push 1
call dword [eax + 8]
jmp 0x1003c9a9
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 0x1003c9a9
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003c9a9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003c9a9
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003c9a7
push 1
call dword [eax + 8]
jmp 0x1003c9a9
call edx
push 0x10
push 0x10048790
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
call fcn.10007c20
push 0x50
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x330]
call fcn.10011e70
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x1003c9f5
inc eax
push eax
push dword [ebp - 0x38]
call fcn.10007b20
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.1003bfa0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x58]
test ecx, ecx
setne al
test al, al
je 0x1003d242
cmp dword [ecx + 0x18], 0xc8
jne 0x1003d242
cmp dword [ecx + 0x34], 0
je 0x1003d199
push 0x38
lea eax, [ebp - 0xc8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0xc8]
call fcn.1002b780
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x58]
add eax, 0x24
cmp dword [eax + 0x14], 0x10
jb 0x1003cacb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc8]
call fcn.1002e2a0
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.1003e4b0
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 0x1003cc91
nop
push 0x38
call fcn.1003ef79
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 0x1003cb6c
mov eax, dword [esi]
jmp 0x1003cb6e
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 0x1003cb98
mov eax, dword [esi + 0x18]
jmp 0x1003cb9b
lea eax, [esi + 0x18]
push str.Name
mov ecx, ebx
mov byte [eax], 0
mov dword [ebp - 0x334], esi
call fcn.1002df00
mov edx, eax
mov eax, 0x1000
test word [edx + 0xe], ax
jne 0x1003cbc0
mov edx, dword [edx + 8]
cmp byte [edx], 0
jne 0x1003cbc9
xor ecx, ecx
jmp 0x1003cbdb
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cbd1
sub ecx, dword [ebp - 0x14]
push ecx
push edx
mov ecx, esi
call fcn.10007c20
push str.Hash
mov ecx, ebx
call fcn.1002df00
mov edx, eax
mov eax, 0x1000
test word [edx + 0xe], ax
jne 0x1003cc00
mov edx, dword [edx + 8]
cmp byte [edx], 0
jne 0x1003cc09
xor ecx, ecx
jmp 0x1003cc1b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cc11
sub ecx, dword [ebp - 0x14]
push ecx
push edx
lea ecx, [esi + 0x18]
call fcn.10007c20
push str.Size
mov ecx, ebx
call fcn.1002df00
push 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ecx
mov dword [esi + 0x30], ecx
mov ecx, esi
push 0x10048814
mov dword [esi + 0x34], eax
call fcn.10005880
cmp eax, 0xffffffff
je 0x1003cc67
cmp esi, 0x10055210
je 0x1003cc67
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x10055210
call fcn.10007810
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002b970
add ebx, 0x10
cmp ebx, dword [ebp - 0x33c]
jne 0x1003cb30
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x340], eax
lea ecx, [ebp - 0x50]
call fcn.1003e960
mov byte [ebp - 4], 0xf
mov esi, edi
mov dword [ebp - 0x33c], esi
cmp edi, dword [ebp - 0x1c]
je 0x1003cfac
nop
mov ebx, dword [esi]
lea ecx, [ebp - 0x50]
push 1
push 0x1004881c
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x14], ebx
call fcn.10007410
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x50]
call fcn.10007320
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
cmovae ecx, dword [ebp - 0x50]
call fcn.1000acc0
mov edi, eax
test edi, edi
je 0x1003cf2c
cmp dword [edi], 0
je 0x1003cf2c
push 0x10
call fcn.1003ef48
mov edx, dword [edi + 0x10]
add edx, dword [edi + 8]
mov ecx, dword [edi]
push eax
mov dword [ebp - 0x334], eax
call fcn.100322c0
push dword [edi]
call fcn.1003ef43
add esp, 0xc
lea ecx, [ebp - 0x38]
push 0x10047807
call fcn.10007d20
push 3
mov byte [ebp - 4], 0x11
call fcn.1003ef48
mov esi, dword [ebp - 0x334]
add esp, 4
mov edi, eax
xor ebx, ebx
movzx ecx, byte [ebx + esi]
push ecx
push 0x10048820
push edi
call fcn.10003960
add esp, 0xc
mov byte [edi + 2], 0
cmp byte [edi], 0
jne 0x1003cd64
xor eax, eax
jmp 0x1003cd79
mov eax, edi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003cd70
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.10007410
inc ebx
cmp ebx, 0x10
jl 0x1003cd44
mov eax, dword [ebp - 0x334]
push eax
mov byte [eax + 0xf], 0
call fcn.1003ef43
push edi
call fcn.1003ef43
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 0x1003cdf3
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 0x1003cdd6
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.10007810
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 0x1003ce61
test dl, dl
je 0x1003ce5d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1003ce61
add ecx, 2
add eax, 2
test dl, dl
jne 0x1003ce41
xor eax, eax
jmp 0x1003ce66
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003cf16
lea eax, [ebp - 0x14]
mov ecx, 0x10055228
push eax
call fcn.1002b970
lea ecx, [ebp - 0x360]
call fcn.1003e960
mov edi, eax
lea eax, [ebp - 0x50]
cmp eax, edi
je 0x1003cebd
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cea2
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10007b20
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.10007530
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003ced5
inc eax
push eax
push dword [ebp - 0x360]
call fcn.10007b20
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x1003ceea
inc eax
push eax
push dword [ebp - 0x88]
call fcn.10007b20
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 0x1003cf97
inc eax
push eax
push dword [ebp - 0x38]
jmp 0x1003cf92
lea ecx, [ebp - 0x360]
call fcn.1003e960
push eax
lea ecx, [ebp - 0x50]
call fcn.10007140
jmp 0x1003cebd
lea eax, [ebp - 0x14]
mov ecx, 0x10055228
push eax
call fcn.1002b970
lea ecx, [ebp - 0x360]
call fcn.1003e960
mov edi, eax
lea eax, [ebp - 0x50]
cmp eax, edi
je 0x1003cf7b
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003cf60
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10007b20
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.10007530
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003cf97
inc eax
push eax
push dword [ebp - 0x360]
call fcn.10007b20
add esi, 4
mov dword [ebp - 0x33c], esi
cmp esi, dword [ebp - 0x1c]
jne 0x1003ccb0
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.1000d190
mov ecx, dword [0x1005522c]
add esp, 8
mov eax, dword [0x10055228]
mov edx, ecx
sub edx, eax
test edx, 0xfffffffc
jne 0x1003d071
mov ecx, dword [0x100553d8]
push str.Client_Tibiao860_ready_to_use.
call fcn.1001fe20
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.100092e0
mov ecx, dword [0x100553d8]
push 3
call fcn.100096c0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
call fcn.1000e640
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003d045
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10007b20
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test edi, edi
je 0x1003d161
mov eax, dword [ebp - 0x340]
sub eax, edi
sar eax, 2
push eax
push edi
jmp 0x1003d15c
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 0x1003d0a4
mov ecx, dword [eax]
lea eax, [eax + 4]
add ebx, dword [ecx + 0x30]
adc edi, dword [ecx + 0x34]
inc esi
cmp esi, edx
jne 0x1003d094
lea ecx, [ebp - 0x360]
call fcn.1003e960
cmp dword [eax + 0x14], 0x10
jb 0x1003d0b7
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 0x1003d0ed
inc ecx
push ecx
push dword [ebp - 0x360]
call fcn.10007b20
test esi, esi
je 0x1003d1f5
cmp dword [ebp - 0x8c], edi
jb 0x1003d1f5
ja 0x1003d10f
cmp dword [ebp - 0x90], ebx
jb 0x1003d1f5
push 0
push 0
push 0
push 0x1003d5a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x1003d136
inc eax
push eax
push dword [ebp - 0x50]
call fcn.10007b20
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
test ecx, ecx
je 0x1003d161
mov eax, dword [ebp - 0x340]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000ce90
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x1003d17d
mov ecx, esi
call fcn.1002c2b0
push 0x14
push esi
call fcn.1003f1ab
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.1003f1ab
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.100038a0
lea ecx, [ebp - 0x330]
call fcn.100121f0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1003d1be
inc eax
push eax
push dword [ebp - 0x70]
call fcn.10007b20
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 0x1003d57a
mov ecx, dword [0x100553d8]
push str.No_space_left_on_disk._nClosing_in_2_seconds.
call fcn.1001fe20
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.100092e0
mov ecx, dword [0x100553d8]
push 3
call fcn.100096c0
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.10037460
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x58]
test ecx, ecx
setne al
test al, al
jne 0x1003d278
or eax, 0xffffffff
jmp 0x1003d27b
mov eax, dword [ecx + 0x18]
push eax
mov edx, str.Error:_Failed_to_check_update__
lea ecx, [ebp - 0x170]
call fcn.10005ec0
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.10005ec0
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x170]
call fcn.10037440
cmp dword [eax + 0x14], 0x10
jb 0x1003d2ba
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.1003e8b0
mov eax, dword [ebp - 0x34c]
add esp, 8
cmp eax, 0x10
jb 0x1003d2e7
inc eax
push eax
push dword [ebp - 0x360]
call fcn.10007b20
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x170]
call fcn.10037440
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x1003d305
mov eax, dword [eax]
mov ecx, dword [0x100553d8]
push eax
call fcn.1001fe20
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1003d32d
inc eax
push eax
push dword [ebp - 0x360]
call fcn.10007b20
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.100092e0
mov ecx, dword [0x100553d8]
push 3
call fcn.100096c0
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.100092e0
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.100092e0
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.100092e0
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.100092e0
call fcn.1003c580
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.10006f90
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 0x1003d474
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d474
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d474
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d472
push 1
call dword [eax + 8]
jmp 0x1003d474
call edx
lea ecx, [ebp - 0x330]
call fcn.100121f0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1003d491
inc eax
push eax
push dword [ebp - 0x70]
call fcn.10007b20
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
test esi, esi
je 0x1003d4d9
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d4d9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d4d9
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d4d7
push 1
call dword [eax + 8]
jmp 0x1003d4d9
call edx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1003d50f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d50f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d50f
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d50d
push 1
call dword [eax + 8]
jmp 0x1003d50f
call edx
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x1003d545
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d545
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1003d545
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d543
push 1
call dword [eax + 8]
jmp 0x1003d545
call edx
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1003d57a
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003d57a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1003d57a
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 4]
cmp eax, vtable.std::_Ref_count_obj_struct_httplib::Response_.0
jne 0x1003d578
push 1
call dword [eax + 8]
jmp 0x1003d57a
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.1003ec02
mov esp, ebp
pop ebp
ret