Function at 0x1007d870
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x101f8740]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x2c], edx
xor ebx, ebx
mov dword [esp + 0x14], 0
push esi
xorps xmm0, xmm0
mov dword [esp + 0x78], ebx
mov eax, dword [ebp + 0x10]
movups xmmword [esp + 0x68], xmm0
push edi
push 0x10201520
add dword [eax + 0x20], 0xffffffec
mov dword [esp + 0x40], ebx
adc dword [eax + 0x24], 0xffffffff
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0x1020156d
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.1007f1c0
push 0x10201520
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
js 0x1007dc78
mov eax, dword [ebp + 0x10]
push dword [esp + 0x34]
push dword [ebp + 0x2e7c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], ecx
call sym.user32.dll_git_odb_read
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x1007d92f
push str.missing_delta_bases
push 0xf
call fcn.10028740
add esp, 8
jmp 0x1007dc7a
mov edi, dword [esp + 0x1c]
mov esi, dword [fcn.1005ed10]
mov ecx, esi
push 0x3b7
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcindexer.c
mov eax, dword [edi + 0x20]
push 0x28
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x18]
push 1
mov dword [esp + 0x48], eax
call dword [0x101a54ac]
call esi
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1007dcf3
push 0
push 0
push 0
call fcn.10151ed0
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x8c]
add esp, 0xc
mov dword [ebx + 0x14], eax
movsx eax, word [edi + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.10080ac0
mov edi, eax
add esp, 8
test edi, edi
js 0x1007dc78
push dword [esp + 0x18]
lea edx, [esp + 0x84]
mov ecx, ebp
call fcn.1007ce80
mov edi, eax
add esp, 4
test edi, edi
js 0x1007dc78
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
add dword [eax + 0x20], ecx
adc dword [eax + 0x24], 0
lea eax, [esp + 0x84]
push eax
push dword [ebx + 0x14]
call fcn.10151ed0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0x14], eax
push 1
push esi
call fcn.100b8a80
mov edi, eax
add esp, 8
test edi, edi
js 0x1007dc78
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
test edi, edi
je 0x1007db8a
mov eax, dword [0x101ff4d4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1007da53
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [0x101ff4d4], eax
mov esi, edi
xor edi, edi
add esi, ecx
adc edi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push eax
push edi
push esi
call fcn.101733b0
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
sub ecx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x10]
sbb ebx, ebx
movlpd qword [esp + 0x48], xmm0
add ecx, esi
mov dword [esp + 0x58], 0
push dword [eax + 0x1c]
adc ebx, edi
sub ecx, 1
mov dword [esp + 0x54], ecx
sbb ebx, 0
mov dword [esp + 0x58], ebx
call fcn.10184f52
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
add esp, 4
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007dccd
cmp dword [esp + 0x14], 0
jl 0x1007dcd2
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test esi, esi
jne 0x1007db06
push str.data
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1007db7a
mov eax, dword [0x101ff4d4]
test eax, eax
jne 0x1007db23
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x64]
mov dword [0x101ff4d4], eax
push 0
push eax
push ebx
push edi
call fcn.101733b0
sub edi, eax
mov dword [esp + 0x20], eax
sbb ebx, 0
push ebx
mov ebx, dword [esp + 0x34]
push edi
push dword [esp + 0x2c]
push ecx
push 2
lea edx, [eax + ebx]
lea ecx, [esp + 0x5c]
call fcn.10094370
mov edi, eax
add esp, 0x14
test edi, edi
js 0x1007dc72
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x20]
push ebx
push esi
push eax
call fcn.10174950
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.10094540
xor edi, edi
test edi, edi
js 0x1007dc72
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push edi
push esi
add dword [eax + 0x20], edi
adc dword [eax + 0x24], 0
push dword [ebx + 0x14]
call fcn.10151ed0
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x14], eax
jbe 0x1007dbd2
test esi, esi
je 0x1007dbd2
cmp esi, 0x1020156c
je 0x1007dbd2
push esi
mov esi, dword [fcn.10032f00]
mov ecx, esi
call dword [0x101a54ac]
call esi
add esp, 4
push 0x14
lea edx, [esp + 0x70]
mov ecx, ebp
call fcn.1007ce80
mov edi, eax
add esp, 4
test edi, edi
js 0x1007dc72
mov eax, dword [ebp + 0x10]
push 0x3d6
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcindexer.c
push 0x20
add dword [eax + 0x20], 0x14
push 1
adc dword [eax + 0x24], 0
mov esi, dword [fcn.1005ed10]
mov ecx, esi
call dword [0x101a54ac]
call esi
mov edx, eax
add esp, 0x10
mov dword [esp + 0x3c], edx
test edx, edx
je 0x1007dcf3
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push edi
movups xmm0, xmmword [eax]
push esi
push edx
movups xmmword [edx + 8], xmm0
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x18], ecx
mov edx, ebx
movups xmm0, xmmword [eax]
mov ecx, dword [esp + 0x44]
movups xmmword [ebx], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
add ecx, dword [esp + 0x24]
adc eax, eax
add ecx, esi
mov dword [ebp + 0x18], ecx
mov ecx, ebp
adc eax, edi
mov dword [ebp + 0x1c], eax
call fcn.1007caf0
add esp, 0xc
mov edi, eax
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x1007dca5
mov esi, dword [fcn.10032f00]
mov ecx, esi
push ebx
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [esp + 0x3c]
call dword [0x101a54ac]
call esi
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1007dcb2
call fcn.100546a0
mov eax, edi
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10172863
add esp, 0xbc
ret
call fcn.1003f860
mov eax, dword [ebp + 0x10]
add eax, 0xa8
push eax
push str.cannot_extend_packfile__s
push 2
call fcn.10028740
mov ebx, dword [esp + 0x1c]
add esp, 0xc
or edi, 0xffffffff
jmp 0x1007dc7a
or eax, 0xffffffff
jmp 0x1007dcb4