Function at 0x10005980
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
lea eax, [esi + 0x90]
mov dword [esi + 0x94], 0x100071e0
mov ecx, dword fs:[0]
mov dword [esi + 0x90], ecx
mov dword fs:[0], eax
mov dword [0x1014bc80], 0x101061bc
mov dword [0x1014bc84], 0
mov dword [0x1014bc88], 0
push 0x30
call fcn.10103843
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x1014bc84], eax
mov dword [esi + 0x98], 2
mov ecx, 0x1014bc80
call fcn.10005e60
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [0x1014bc84]
mov dword [esi + 0x40], eax
mov eax, dword [eax]
nop dword [eax + eax]
cmp eax, dword [esi + 0x40]
je 0x10005d0f
mov edi, eax
mov eax, dword [0x1014bc74]
test eax, eax
mov dword [esi + 8], edi
jne 0x10005a77
mov dword [esi + 0x98], 3
call dword [sym.imp.Geode.dll_public:_static_class_geode::Loader____cdecl_geode::Loader::get_void_]
mov ecx, eax
call dword [sym.imp.Geode.dll_protected:_class_geode::Mod____thiscall_geode::Loader::takeNextMod_void_]
mov dword [0x1014bc74], eax
mov edi, dword [esi + 8]
mov dword [esi + 0xc], esp
push eax
sub esp, 8
mov ecx, esp
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x10005ab0
lock inc dword [edx + 4]
mov edx, dword [edi + 0x2c]
mov dword [esi + 0x98], 3
jmp 0x10005ab2
xor edx, edx
mov edi, dword [edi + 0x28]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
lea edx, [esi + 0x44]
mov dword [ecx], edx
mov dword [esi + 0x98], 3
mov ecx, eax
call dword [sym.imp.Geode.dll_public:_class_geode::Result_class_geode::Hook___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_geode::Mod::claimHook_class_std::shared_ptr_class_geode::Hook__]
mov esp, dword [esi + 0xc]
cmp byte [esi + 0x5c], 0
je 0x10005b00
mov eax, dword [esi + 8]
add eax, 0x10
mov dword [esi + 0x98], 4
lea ecx, [esi + 0x2c]
push eax
call fcn.10001f80
mov ebx, dword [esi + 8]
jmp 0x10005c90
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
cmp dword [esi + 0x58], 0x10
lea eax, [esi + 0x44]
mov edi, dword [esi + 8]
jb 0x10005b24
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x54]
test ecx, ecx
js 0x10005d62
cmp ecx, 0xf
ja 0x10005b4a
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0xf
movups xmm0, xmmword [eax]
movaps xmmword [esi + 0x10], xmm0
jmp 0x10005bcc
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x3c], ecx
or ecx, 0xf
cmp ecx, 0x17
mov eax, 0x16
cmovb ecx, eax
cmp ecx, 0xfff
mov dword [esi + 0x38], ecx
jb 0x10005b96
lea eax, [ecx + 0x24]
mov dword [esi + 0x98], 4
push eax
call fcn.10103843
add esp, 4
mov edi, dword [esi + 8]
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x10005baf
lea eax, [ecx + 1]
mov dword [esi + 0x98], 4
push eax
call fcn.10103843
add esp, 4
mov edi, dword [esi + 8]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x24], edx
inc ecx
push ecx
push dword [esi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x98], 5
lea eax, [esi + 0x60]
push eax
call dword [sym.imp.Geode.dll_public:_class_std::basic_string_view_char__struct_std::char_traits_char_____thiscall_geode::Hook::getDisplayName_void_]
call fcn.100072b0
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x10005bf4
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x60]
mov dword [esi + 0x68], edx
mov edx, dword [esi + 0x64]
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x74], ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0xdd
lea ecx, [esi + 0x68]
mov dword [esi + 0x80], ecx
sub esp, 0x20
movups xmm0, xmmword [esi + 0x78]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0x1b
mov dword [esp + 8], str.Failed_to_claim_hook_:_
mov dword [esp], 3
call dword [sym.imp.Geode.dll_void___cdecl_geode::log::vlogImpl_struct_geode::Severity__class_geode::Mod___class_fmt::v10::basic_string_view_char___class_fmt::v10::basic_format_args_class_fmt::v10::basic_format_context_class_fmt::v10::appender__char___]
add esp, 0x20
mov eax, dword [esi + 0x24]
cmp eax, 0x10
mov ebx, dword [esi + 8]
jb 0x10005c90
mov ecx, dword [esi + 0x10]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x10005c81
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x10005d71
add eax, 0x24
mov edx, eax
mov ecx, edi
push edx
push ecx
call fcn.10103878
add esp, 8
nop dword [eax + eax]
cmp byte [esi + 0x5c], 0
jne 0x10005cd0
mov eax, dword [esi + 0x58]
cmp eax, 0x10
jb 0x10005cd0
mov ecx, dword [esi + 0x44]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x10005cc4
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x10005d81
add eax, 0x24
mov edx, eax
mov ecx, edi
push edx
push ecx
call fcn.10103878
add esp, 8
nop
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0xd], 0
je 0x10005d00
nop dword [eax]
mov eax, dword [ebx + 4]
cmp byte [eax + 0xd], 0
jne 0x10005a40
mov ecx, ebx
mov ebx, eax
cmp ecx, dword [eax + 8]
je 0x10005ce0
mov eax, ebx
jmp 0x10005a40
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10005d00
jmp 0x10005a40
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x30]
cmp edi, ebx
je 0x10005d46
nop dword [eax]
mov ecx, 0x1014bc84
push edi
lea eax, [esi + 0x44]
push eax
call fcn.10002680
mov ecx, 0x1014bc84
push dword [esi + 0x48]
push dword [esi + 0x44]
call fcn.10002820
add edi, 0x18
cmp edi, ebx
jne 0x10005d20
lea ecx, [esi + 0x2c]
call fcn.10002e70
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x98], 4
call fcn.10001f70
mov dword [esi + 0x98], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x98], 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop word cs:[eax + eax]
push ebp
sub esp, 0x20
lea esi, [ebp - 0x9c]
mov ebp, dword [esi + 0x88]
call sub.VCRUNTIME140.dll___std_terminate
nop word cs:[eax + eax]
push ebp
sub esp, 0x20
lea esi, [ebp - 0x9c]
mov ebp, dword [esi + 0x88]
lea ecx, [esi + 0x10]
call fcn.10001c30
add esp, 0x20
pop ebp
ret