Function at 0x1007dc80
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa78
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0xa74], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x70]
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, 0x1015ddcd
push 0x9d8
push 0
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.100f6510
add esp, 0xc
test byte [edi], 1
jne 0x1007dd12
push str.incomplete_pack_header
push 0xf
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
add ecx, 0x14
mov eax, dword [edx + 0x20]
adc esi, 0
mov edx, dword [edx + 0x24]
cmp esi, edx
jg 0x1007dd61
jl 0x1007dd31
cmp ecx, eax
jae 0x1007dd57
push str.unexpected_data_at_the_end_of_the_pack
push 0xf
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
cmp esi, edx
jl 0x1007dd87
jg 0x1007dd61
cmp ecx, eax
jbe 0x1007dd87
push str.missing_trailer_at_the_end_of_the_pack
push 0xf
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
sub eax, 0x14
push ecx
mov ecx, dword [edi + 0x10]
sbb edx, 0
push 0x14
push edx
push eax
lea edx, [esp + 0x30]
call fcn.1007f000
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1007ddd5
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1007e5b6
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x1c]
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1007e5b6
lea edx, [edi + 0x2e98]
lea ecx, [esp + 0xa50]
call fcn.1007fd40
lea ecx, [esp + 0xa50]
mov edx, 0x10
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1007de0b
add ecx, 4
add esi, 4
sub edx, 4
jae 0x1007ddf3
mov byte [esp + 0xf], 0
jmp 0x1007de10
mov byte [esp + 0xf], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1007de31
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x1c]
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0xf], 0
je 0x1007de5e
push str.packfile_trailer_mismatch
push 0xf
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
mov ecx, edi
mov edx, esi
mov eax, dword [esi]
sub eax, dword [esi + 4]
mov dword [esi + 0x10], eax
call fcn.1007d7b0
test eax, eax
js 0x1007e60c
mov eax, dword [esi + 4]
cmp eax, dword [esi]
je 0x1007dea8
push str.early_EOF
push 0xf
call fcn.10028180
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xc], 0
jbe 0x1007e0a9
mov esi, dword [edi + 0x10]
lea ecx, [edi + 0x2e98]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x38], esi
call fcn.1007fc90
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi + 0xc], eax
lea ecx, [edi + 4]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x1007df29
push str.data
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
cmp dword [0x1015bd4c], 0
jne 0x1007df4a
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x70]
mov dword [0x1015bd4c], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push eax
push ecx
push 2
mov edx, 0xc
lea ecx, [esp + 0x5c]
call fcn.10093e30
add esp, 0x14
test eax, eax
js 0x1007e609
mov ecx, dword [esp + 0x48]
movq xmm0, qword [edi + 4]
movq qword [ecx], xmm0
mov eax, dword [edi + 0xc]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x48]
call fcn.10094000
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.1007ec60
push 0x1015dd80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
js 0x1007e609
mov eax, dword [esp + 0x38]
mov dword [edi + 0x2e94], 0
cmp dword [eax + 0x24], 0
jl 0x1007e073
jg 0x1007dfd2
cmp dword [eax + 0x20], 0
jbe 0x1007e073
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
lea esi, [esp + 0x28]
push esi
push 0x100000
push ecx
push edx
lea edx, [esp + 0x30]
mov ecx, eax
call fcn.1007f000
add esp, 0x10
test eax, eax
je 0x1007e609
mov esi, dword [esp + 0x28]
mov edx, eax
push esi
mov ecx, edi
call fcn.1007c6e0
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x34]
add edx, esi
mov esi, dword [esp + 0x20]
adc ecx, 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], ecx
test esi, esi
je 0x1007e05b
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x1c]
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x38]
cmp ecx, dword [eax + 0x24]
jl 0x1007dfe2
jg 0x1007e073
cmp edx, dword [eax + 0x20]
jb 0x1007dfe2
lea edx, [edi + 0x2e98]
lea ecx, [esp + 0xa50]
call fcn.1007fd40
mov eax, dword [edi + 0x10]
lea edx, [esp + 0xa50]
push 0x14
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
sub ecx, 0x14
sbb eax, 0
push eax
push ecx
mov ecx, edi
call fcn.1007c840
add esp, 0xc
mov eax, dword [edi + 0x2e78]
mov eax, dword [eax + 4]
test eax, eax
je 0x1007e0dd
push eax
push str.packfile_is_missing__Iu_objects
push 0xf
call fcn.10028180
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x9c]
call fcn.100383f0
movups xmm0, xmmword [esp + 0xa50]
mov eax, dword [esp + 0xa60]
lea edx, [edi + 0xe44]
xor esi, esi
movups xmmword [edi + 0xe30], xmm0
mov dword [edi + 0xe40], eax
nop dword [eax]
movzx ecx, byte [esp + esi + 0xa50]
lea edx, [edx + 2]
mov eax, ecx
inc esi
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [edx - 2], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov byte [edx - 1], al
cmp esi, 0x14
jb 0x1007e110
mov byte [edx], 0
mov edx, dword [edi + 0x10]
add edx, 0xa8
je 0x1007e15b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007e150
sub ecx, esi
jmp 0x1007e15d
xor ecx, ecx
push ecx
lea ecx, [esp + 0x14]
call fcn.100299a0
mov eax, dword [esp + 0x1c]
add esp, 4
mov esi, dword [esp + 0x10]
cmp eax, 4
jbe 0x1007e190
lea ecx, [eax - 4]
cmp ecx, eax
jae 0x1007e1b1
mov eax, ecx
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x14]
jae 0x1007e1b1
mov byte [ecx + esi], 0
jmp 0x1007e1b1
xor eax, eax
mov dword [esp + 0x18], eax
test esi, esi
jne 0x1007e1a9
mov esi, 0x1015ddcd
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jmp 0x1007e1b1
cmp dword [esp + 0x14], eax
jbe 0x1007e1b1
mov byte [esi], al
lea ecx, [eax + 3]
cmp ecx, eax
jb 0x1007e20e
lea edx, [ecx + 1]
cmp edx, ecx
jb 0x1007e20e
cmp esi, 0x1015ddcc
je 0x1007e609
cmp edx, dword [esp + 0x14]
jbe 0x1007e1eb
push 1
lea ecx, [esp + 0x14]
call fcn.10029800
add esp, 4
test eax, eax
js 0x1007e219
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 3
add eax, esi
push 0x1014525c
push eax
call fcn.100f5f90
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 3
mov dword [esp + 0x18], eax
mov byte [eax + esi], 0
jmp 0x1007e219
call fcn.1002b0b0
mov dword [eax], str.Out_of_memory
mov edx, dword [esp + 0x10]
cmp edx, 0x1015ddcc
je 0x1007e609
mov ecx, dword [edi]
movzx eax, word [edi + 0x14]
shr ecx, 4
and ecx, 1
shl ecx, 6
push 0x2000
or ecx, 1
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.100376d0
add esp, 0xc
test eax, eax
js 0x1007e5b6
push 0xff744f63
call dword [sym.imp.WS2_32.dll_htonl]
push 2
mov dword [esp + 0x44], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x7c]
call fcn.10037ce0
lea esi, [edi + 0xc4]
add esp, 4
mov edi, 0x100
push dword [esi]
call dword [sym.imp.WS2_32.dll_htonl]
push 4
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x7c]
call fcn.10037ce0
add esp, 4
lea esi, [esi + 4]
sub edi, 1
jne 0x1007e291
mov edi, dword [esp + 0x24]
xor esi, esi
cmp dword [edi + 0xa8], esi
jbe 0x1007e3d7
nop dword [eax]
mov edx, dword [edi + 0xa4]
lea ecx, [esp + 0x78]
push 0x14
mov edx, dword [edx + esi*4]
call fcn.10037ce0
mov eax, dword [edi + 0xa8]
inc esi
add esp, 4
cmp esi, eax
jb 0x1007e2d0
xor esi, esi
test eax, eax
je 0x1007e325
nop dword [eax + eax]
mov eax, dword [edi + 0xa4]
lea ecx, [esp + 0x78]
push 4
mov edx, dword [eax + esi*4]
add edx, 0x14
call fcn.10037ce0
mov eax, dword [edi + 0xa8]
inc esi
add esp, 4
cmp esi, eax
jb 0x1007e300
xor esi, esi
test eax, eax
je 0x1007e379
nop dword [eax + eax]
mov eax, dword [edi + 0xa4]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x1007e351
mov ecx, dword [esp + 0x3c]
mov eax, ecx
or eax, 0x80000000
inc ecx
mov dword [esp + 0x3c], ecx
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 4
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x7c]
call fcn.10037ce0
mov eax, dword [edi + 0xa8]
inc esi
add esp, 4
cmp esi, eax
jb 0x1007e330
xor esi, esi
test eax, eax
je 0x1007e3d7
nop
mov eax, dword [edi + 0xa4]
mov ecx, dword [eax + esi*4]
mov dword [esp + 0x24], ecx
cmp dword [ecx + 0x18], 0xffffffff
jne 0x1007e3ce
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
mov cl, 0x20
call fcn.100f4800
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x20]
call dword [sym.imp.WS2_32.dll_htonl]
push 8
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x7c]
call fcn.10037ce0
add esp, 4
inc esi
cmp esi, dword [edi + 0xa8]
jb 0x1007e380
push 0x14
lea edx, [esp + 0xa54]
lea ecx, [esp + 0x7c]
call fcn.10037ce0
add esp, 4
test eax, eax
js 0x1007e5b6
cmp byte [esp + 0x84], 0
jne 0x1007e41c
push str.file__compute_digest
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
jmp 0x1007e5b6
push dword [esp + 0xa38]
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x7c]
push dword [esp + 0x9f4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 0xc
mov dword [esp + 0xa38], 0
lea ecx, [esp + 0x78]
call fcn.10036e80
test eax, eax
js 0x1007e5b6
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa50]
call fcn.1007fd40
push 0x14
lea edx, [esp + 0xa54]
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x7c]
call fcn.10037ce0
add esp, 4
lea ecx, [esp + 0x10]
mov edx, edi
push str..idx
call fcn.1007d1c0
add esp, 4
test eax, eax
js 0x1007e5b6
push dword [esp + 0x78]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52]
mov ecx, esi
push 0x19a
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_src_filebuf.c
push edx
call dword [0x101182f8]
call esi
add esp, 0xc
mov dword [esp + 0x78], eax
test eax, eax
je 0x1007e5b6
lea ecx, [esp + 0x78]
call fcn.10037bb0
test eax, eax
js 0x1007e5b6
mov esi, dword [edi + 0x10]
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.1007ec60
push 0x1015dd80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
js 0x1007e5b6
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
test edx, edx
jg 0x1007e54d
jl 0x1007e540
test ecx, ecx
jae 0x1007e54d
call fcn.100fe80a
mov dword [eax], 0x16
jmp 0x1007e55c
push edx
push ecx
push eax
call fcn.1010125a
add esp, 0xc
test eax, eax
je 0x1007e58b
mov eax, dword [edi + 0x10]
add eax, 0xa8
push eax
push str.failed_to_truncate_pack_file__s
push 2
call fcn.10028180
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
test byte [edi], 0x10
je 0x1007e620
mov ecx, dword [edi + 0x10]
mov ecx, dword [ecx + 0x1c]
call fcn.1003f6c0
test eax, eax
jns 0x1007e620
push str.failed_to_fsync_packfile
push 2
call fcn.10028180
add esp, 8
mov esi, dword [edi + 0x10]
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.1007ec60
push 0x1015dd80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x78]
call fcn.10037160
cmp dword [esp + 0x14], 0
jbe 0x1007e609
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007e609
cmp eax, 0x1015ddcc
je 0x1007e609
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xa74]
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x10]
push dword [eax + 0x1c]
call fcn.10105c23
add esp, 4
test eax, eax
jns 0x1007e63c
push str.failed_to_close_packfile
jmp 0x1007e5ac
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x10]
push str..pack
mov edx, edi
mov dword [eax + 0x1c], 0xffffffff
call fcn.1007d1c0
add esp, 4
test eax, eax
js 0x1007e5b6
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x10]
add ecx, 0xa8
mov edx, esi
call fcn.100406f0
test eax, eax
js 0x1007e5b6
test byte [edi], 0x10
je 0x1007e691
mov ecx, esi
call fcn.1003a5b0
test eax, eax
js 0x1007e5b6
or dword [edi], 2
cmp dword [esp + 0x14], 0
jbe 0x1007e6bb
test esi, esi
je 0x1007e6bb
cmp esi, 0x1015ddcc
je 0x1007e6bb
push esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
mov ecx, dword [esp + 0xa7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100f4277
mov esp, ebp
pop ebp
ret