Function at 0x1006a590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083c04
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x1009c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x44], 0
cmp dword [0x1009fce4], 0
jne 0x1006aa54
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.creating_new_imgui_context__n
call fcn.10007cb0
push str.creating_new_imgui_context__n
push 7
call fcn.1000ad60
mov eax, dword [0x1009fce4]
add esp, 8
test eax, eax
je 0x1006a616
inc dword [eax + 0x36c]
push dword [0x1009fce0]
push 0x3dc8
call fcn.10017880
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x39]
add esp, 8
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1006a64d
push 0
mov ecx, eax
call fcn.100164a0
mov ecx, eax
jmp 0x1006a64f
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1009fce4]
test eax, eax
cmove eax, ecx
mov dword [0x1009fce4], eax
call fcn.1001d2c0
cmp dword [0x1009fcf8], 0
mov eax, str.Call_Of_Duty_4
mov edi, str.Call_Of_Duty_4_X
cmove edi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [0x1009fce4]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1006ab5b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1006ab5b
mov eax, dword [0x1009fce4]
test eax, eax
je 0x1006a6c3
inc dword [eax + 0x36c]
push dword [0x1009fce0]
push 0x38
call fcn.10017880
mov edi, eax
add esp, 8
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x39]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x1006a6fb
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1006a6fd
xor edi, edi
mov dword [ebp - 4], 0xffffffff
or dword [esi + 0xc], 6
mov edx, dword [ebp - 0x40]
mov dword [esi + 0xc4], edi
mov dword [esi + 0xbc], str.imgui_impl_win32
mov dword [edi], edx
mov byte [edi + 0x25], 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
mov dword [esi + 0xe0], edx
mov dword [esi + 0x34], 9
mov dword [esi + 0x38], 0x25
mov dword [esi + 0x3c], 0x27
mov dword [esi + 0x40], 0x26
mov dword [esi + 0x44], 0x28
mov dword [esi + 0x48], 0x21
mov dword [esi + 0x4c], 0x22
mov dword [esi + 0x50], 0x24
mov dword [esi + 0x54], 0x23
mov dword [esi + 0x58], 0x2d
mov dword [esi + 0x5c], 0x2e
mov dword [esi + 0x60], 8
mov dword [esi + 0x64], 0x20
mov dword [esi + 0x68], 0xd
mov dword [esi + 0x6c], 0x1b
mov dword [esi + 0x70], 0xd
mov dword [esi + 0x74], 0x41
mov dword [esi + 0x78], 0x43
mov dword [esi + 0x7c], 0x56
mov dword [esi + 0x80], 0x58
mov dword [esi + 0x84], 0x59
mov dword [esi + 0x88], 0x5a
xor esi, esi
mov dword [ebp - 0x68], str.xinput1_4.dll
mov dword [ebp - 0x64], str.xinput1_3.dll
mov dword [ebp - 0x60], str.xinput9_1_0.dll
mov dword [ebp - 0x5c], str.xinput1_2.dll
mov dword [ebp - 0x58], str.xinput1_1.dll
nop
push dword [ebp + esi*4 - 0x68]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x1006a829
inc esi
cmp esi, 5
jl 0x1006a810
jmp 0x1006a84a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push eax
mov dword [edi + 0x28], eax
call esi
push str.XInputGetState
push dword [ebp - 0x40]
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov esi, dword [0x1009fce4]
test esi, esi
je 0x1006a85a
inc dword [esi + 0x36c]
push dword [0x1009fce0]
push 0x18
call fcn.10017880
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x45]
add esp, 8
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1006a89c
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x10], 0x1388
mov dword [eax + 0x14], 0x2710
jmp 0x1006a89e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x70]
or dword [esi + 0xc], 8
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc0], str.imgui_impl_dx9
mov dword [eax], ecx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push dword [0x1009c2ec]
lea eax, [ebp - 0x54]
push dword [0x1009c2e8]
push eax
call fcn.1006b360
call fcn.1006b2d0
push ecx
call fcn.1006b450
lea ecx, [ebp - 0x2c]
call fcn.10011180
mov esi, eax
mov dword [ebp - 4], 3
cmp esi, 0x1009c2e8
je 0x1006a933
mov ecx, 0x1009c2e8
call fcn.10012df0
mov ecx, dword [esi]
mov dword [0x1009c2e8], ecx
mov eax, dword [esi + 4]
mov dword [0x1009c2ec], eax
mov eax, dword [esi + 8]
mov dword [0x1009c2f0], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10012df0
mov ecx, dword [0x1009c2ec]
mov eax, 0x92492493
sub ecx, dword [0x1009c2e8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x1006a97a
push str.Failed_to_create_image_pairs__no_images_found_in_cod41_kejimages__n
push 3
call fcn.10015a80
add esp, 8
jmp 0x1006ab6b
call fcn.1006aee0
test al, al
jne 0x1006a997
push str.Failed_to_create_D3DX_textures_from_images_n
push 3
call fcn.10015a80
add esp, 8
jmp 0x1006ab6b
mov edi, dword [0x1009c2ec]
xor eax, eax
mov dword [ebp - 0x9c], str.Automation
mov dword [ebp - 0x98], str.Error_no_load
mov dword [ebp - 0x94], str.Game
mov dword [ebp - 0x90], str.Home
mov dword [ebp - 0x8c], str.Jump_Builder
mov dword [ebp - 0x88], str.Jump_Preview
mov dword [ebp - 0x84], str.Jumping
mov dword [ebp - 0x80], 0x100885b0
mov dword [ebp - 0x7c], 0x100885b4
mov dword [ebp - 0x78], str.Settings_no_load
mov dword [ebp - 0x74], str.Visuals
mov dword [ebp - 0x40], eax
mov esi, dword [0x1009c2e8]
xor cl, cl
mov byte [ebp - 0x39], cl
cmp esi, edi
je 0x1006aa3a
push ecx
push dword [ebp + eax*4 - 0x9c]
mov ecx, esi
call fcn.10008f40
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x40]
jne 0x1006aa33
add esi, 0x1c
cmp esi, edi
jne 0x1006aa13
jmp 0x1006aa37
mov byte [ebp - 0x39], 1
mov cl, byte [ebp - 0x39]
test cl, cl
je 0x1006aa5b
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 0xb
jb 0x1006aa04
movss xmm0, dword [0x10093af0]
call fcn.1007aab0
mov al, 1
jmp 0x1006ab6d
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.1000fdc0
mov byte [ebp - 4], 5
push ecx
push 0x10088460
lea ecx, [ebp - 0x38]
call fcn.100118e0
push eax
push 0
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x38]
call fcn.10011830
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.10005a90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb4]
push str.1_kejimages
call fcn.1000ac50
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x44], 5
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
cmovae eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x40]
push dword [ebp + eax*4 - 0x9c]
push str.Couldnt_find_image__s_from__s_n
push 3
call fcn.10015a80
mov esi, 5
add esp, 0x10
mov dword [ebp - 0x44], esi
and esi, 0xfffffffb
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.10005a90
and esi, 0xfffffffe
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.10005a90
push str.Stopping_initialization_due_to_missing_image_s__n
push 3
call fcn.10015a80
add esp, 8
jmp 0x1006ab6b
push edi
push str.ImGui_ImplWin32_Init__s__return_false_n
push 3
call fcn.10015a80
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007e605
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret