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

Disassembly:
sub esp, 0xe4
mov eax, dword [0x101fd700]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x30], edx
xor ebx, ebx
mov dword [esp + 0x18], 0
push esi
xorps xmm0, xmm0
mov dword [esp + 0xa0], ebx
mov eax, dword [ebp + 0x10]
movups xmmword [esp + 0x90], xmm0
push edi
push 0x10206980
add dword [eax + 0x20], 0xffffffec
mov dword [esp + 0x44], ebx
adc dword [eax + 0x24], 0xffffffff
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x30], 0x102069cd
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.100812a0
push 0x10206980
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
js 0x1007fd58
mov eax, dword [ebp + 0x10]
push dword [esp + 0x38]
push dword [ebp + 0x2e7c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x50], ecx
call sym.user32.dll_git_odb_read
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x1007fa05
push str.missing_delta_bases
push 0xf
call fcn.1002a5a0
add esp, 8
jmp 0x1007fd5a
mov edi, dword [esp + 0x20]
mov esi, dword [fcn.10060f30]
mov ecx, esi
push 0x3b7
push str.C:UsersAdmin_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcindexer.c
mov eax, dword [edi + 0x20]
push 0x28
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x18]
push 1
mov dword [esp + 0x4c], eax
call dword [0x101aa4e4]
call esi
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1007fdd3
push 0
push 0
push 0
call fcn.10156260
mov esi, dword [esp + 0x48]
lea edx, [esp + 0xb4]
add esp, 0xc
mov dword [ebx + 0x14], eax
movsx eax, word [edi + 0x14]
lea ecx, [esp + 0x1c]
push eax
push esi
call fcn.10082ba0
mov edi, eax
add esp, 8
test edi, edi
js 0x1007fd58
push dword [esp + 0x1c]
lea edx, [esp + 0xac]
mov ecx, ebp
call fcn.1007ef30
mov edi, eax
add esp, 4
test edi, edi
js 0x1007fd58
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
add dword [eax + 0x20], ecx
adc dword [eax + 0x24], 0
lea eax, [esp + 0xac]
push eax
push dword [ebx + 0x14]
call fcn.10156260
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [ebx + 0x14], eax
push 1
push esi
call fcn.100bb040
mov edi, eax
add esp, 8
test edi, edi
js 0x1007fd58
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test edi, edi
je 0x1007fc67
mov eax, dword [0x10204924]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1007fb29
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [0x10204924], eax
mov esi, edi
xor edi, edi
add esi, ecx
adc edi, dword [esp + 0x28]
xor ebx, ebx
push ebx
push eax
push edi
push esi
call fcn.10177700
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
sub ecx, eax
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x10]
sbb ebx, ebx
movlpd qword [esp + 0x4c], xmm0
add ecx, esi
mov dword [esp + 0x5c], 0
push dword [eax + 0x1c]
adc ebx, edi
sub ecx, 1
mov dword [esp + 0x58], ecx
sbb ebx, 0
mov dword [esp + 0x5c], ebx
call fcn.10188e32
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x50]
add esp, 4
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007fdad
cmp dword [esp + 0x18], 0
jl 0x1007fdb2
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x28], eax
test esi, esi
jne 0x1007fbe3
push str.data
push str.invalid_argument
push 0x101dc9b8
push 3
call fcn.1002a5a0
mov ebx, dword [esp + 0x24]
add esp, 0x10
or edi, 0xffffffff
jmp 0x1007fd5a
mov eax, dword [0x10204924]
test eax, eax
jne 0x1007fc03
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x8c]
mov dword [0x10204924], eax
push 0
push eax
push ebx
push edi
call fcn.10177700
mov edx, dword [esp + 0x34]
mov ecx, eax
sub edi, ecx
mov dword [esp + 0x24], ecx
sbb ebx, 0
push ebx
push edi
push dword [esp + 0x30]
lea edx, [ecx + edx]
push ecx
push 2
lea ecx, [esp + 0x60]
call fcn.10096370
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x1007fc43
mov ebx, dword [esp + 0x14]
jmp 0x1007fd5a
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x24]
push edi
push esi
push eax
call fcn.10178960
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.10096540
mov ebx, dword [esp + 0x14]
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.10156260
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x14], eax
jbe 0x1007fcaf
test esi, esi
je 0x1007fcaf
cmp esi, 0x102069cc
je 0x1007fcaf
push esi
mov esi, dword [fcn.10034de0]
mov ecx, esi
call dword [0x101aa4e4]
call esi
add esp, 4
push 0x14
lea edx, [esp + 0x98]
mov ecx, ebp
call fcn.1007ef30
mov edi, eax
add esp, 4
test edi, edi
js 0x1007fd52
mov eax, dword [ebp + 0x10]
push 0x3d6
push str.C:UsersAdmin_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.10060f30]
mov ecx, esi
call dword [0x101aa4e4]
call esi
mov edx, eax
add esp, 0x10
mov dword [esp + 0x40], edx
test edx, edx
je 0x1007fdd3
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
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 + 0x48]
movups xmmword [ebx], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
add ecx, dword [esp + 0x28]
adc eax, eax
add ecx, esi
mov dword [ebp + 0x18], ecx
mov ecx, ebp
adc eax, edi
mov dword [ebp + 0x1c], eax
call fcn.1007eba0
add esp, 0xc
mov edi, eax
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x1007fd85
mov esi, dword [fcn.10034de0]
mov ecx, esi
push ebx
call dword [0x101aa4e4]
call esi
mov esi, dword [fcn.10034de0]
add esp, 4
mov ecx, esi
push dword [esp + 0x40]
call dword [0x101aa4e4]
call esi
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1007fd92
call fcn.10056a90
mov eax, edi
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10176fcb
add esp, 0xe4
ret
call fcn.100416a0
mov eax, dword [ebp + 0x10]
add eax, 0xa8
push eax
push str.cannot_extend_packfile__s
push 2
call fcn.1002a5a0
mov ebx, dword [esp + 0x20]
add esp, 0xc
or edi, 0xffffffff
jmp 0x1007fd5a
or eax, 0xffffffff
jmp 0x1007fd94