Function at 0x40e3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f962
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax], 0x4e4a8c
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x4e4a8c
mov edx, dword [ebp + 8]
mov dword [edx + 4], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], ebx
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], ebx
mov ecx, dword [ebp + 8]
add ecx, 0x44
mov byte [ebp - 4], 0xf
call fcn.0041fe50
mov eax, dword [ebp + 8]
add eax, 0x50
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov byte [eax + 0x28], bl
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esi, 0x24
cmp eax, ebx
mov byte [ebp - 4], 0x10
je 0x40e482
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x40e490
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add esi, 0x2c
cmp eax, ebx
je 0x40e4a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x40e4b6
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], ebx
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x44]
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp + 8]
push eax
add ecx, 0x44
call dword [esi]
mov eax, dword [ebp + 8]
mov byte [eax + 0x98], bl
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
add esi, 0x20
cmp eax, ebx
je 0x40e4f1
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi]
cmp ecx, ebx
je 0x40e4ff
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x28]
xor eax, eax
dec ecx
je 0x40e523
dec ecx
je 0x40e51c
dec ecx
jne 0x40e528
mov eax, 3
jmp 0x40e528
mov eax, 2
jmp 0x40e528
mov eax, 1
push eax
call fcn.0041e8a0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov ecx, dword [edx + 0x24]
mov eax, esp
lea edx, [ebp - 0x10]
push edx
mov dword [eax], ecx
call dword [sym.imp.GFXEngine.dll_class_core::ref_struct_FontMgr__struct_FontMgr____cdecl_createFontMgr_class_core::in_struct_GameFileSystem__]
add esp, 8
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x34
cmp ecx, ebx
mov byte [ebp - 4], 0x11
je 0x40e55e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x40e569
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
mov byte [ebp - 4], 0x10
je 0x40e57d
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx]
push str.fonts.xml
call dword [edx + 0x14]
push ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 0x24]
mov eax, esp
mov dword [eax], edx
call fcn.00413560
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SFXEngine.dll_class_core::ref_struct_SFXEngine__struct_SFXEngine____cdecl_createSFXEngine_void___class_core::in_struct_GameFileSystem__]
add esp, 0xc
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x1c
cmp ecx, ebx
mov byte [ebp - 4], 0x12
je 0x40e5c4
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x40e5cf
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
mov byte [ebp - 4], 0x10
je 0x40e5e3
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x40e5fe
mov esi, dword [esi + 0x2c]
mov eax, dword [ecx]
xor edx, edx
mov dl, byte [esi + 0x18]
push edx
call dword [eax + 0x64]
mov esi, dword [ebp + 8]
push 1
call fcn.0040e8b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov ecx, dword [ecx + 0x14]
xor esi, esi
sub ecx, ebx
je 0x40e61f
dec ecx
jne 0x40e62f
mov esi, 1
push esi
jmp 0x40e622
xor esi, esi
push ebx
mov eax, dword [eax + 0x24]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x34]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
je 0x40e63f
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
cmp byte [ecx + 0x11], bl
je 0x40e64b
xor ecx, ecx
jmp 0x40e64e
mov ecx, dword [ecx + 0xc]
push ecx
call fcn.0040e9d0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
cmp byte [eax + 0x10], bl
jne 0x40e662
mov ebx, dword [eax + 8]
call fcn.0040e990
push ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 0x34]
mov eax, esp
mov dword [eax], edx
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov eax, esp
mov dword [eax], edx
mov dword [ebp - 0x14], esp
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
mov eax, esp
mov dword [eax], edx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
push eax
call dword [sym.imp.GFXEngine.dll_class_core::ref_struct_LoadingScreen__struct_LoadingScreen____cdecl_createLoadingScreen_class_core::in_struct_video::Context___class_core::in_struct_GameFileSystem___class_core::in_struct_FontMgr__]
add esp, 0x10
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x18
test ecx, ecx
mov byte [ebp - 4], 0x13
je 0x40e6b4
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi]
test ecx, ecx
je 0x40e6bf
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov bl, 0x10
mov byte [ebp - 4], bl
je 0x40e6d4
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
push 0
call dword [edx + 8]
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, esp
mov dword [eax], edx
mov dword [ebp - 0x14], esp
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov eax, esp
mov dword [eax], edx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
push eax
call dword [sym.imp.Loader.dll_class_core::ref_struct_GameLoader__struct_GameLoader____cdecl_createGameLoader_class_core::in_struct_GameFileSystem___class_core::in_struct_LoadingScreen__]
add esp, 0xc
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x28
test ecx, ecx
mov byte [ebp - 4], 0x14
je 0x40e720
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi]
test ecx, ecx
je 0x40e72b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov byte [ebp - 4], bl
je 0x40e73e
mov edx, dword [ecx]
call dword [edx + 4]
push 0xffffffffffffffff
push 0x10101010
push 0x1010101
call section..cms_t
add byte [ebx + 0x4189084d], cl
cmp byte [eax + 0x58], bl
pop eax
mov edx, dword [ebp + 8]
push str.userdata.ngh
push ecx
mov ecx, dword [edx + 0x24]
mov eax, esp
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], esp
push edx
mov dword [eax], ecx
call fcn.0040bb50
add esp, 0xc
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x30
test ecx, ecx
mov byte [ebp - 4], 0x15
je 0x40e78e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x40e799
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov byte [ebp - 4], bl
je 0x40e7ac
mov edx, dword [ecx]
call dword [edx + 4]
lea edi, [ebp - 0x10]
call fcn.0040fc20
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi]
add edi, 0x3c
test ecx, ecx
mov byte [ebp - 4], 0x16
je 0x40e7ca
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x40e7d5
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
mov byte [ebp - 4], bl
je 0x40e7e8
mov edx, dword [ecx]
call dword [edx + 4]
push str.shortcuts.xml
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov eax, esp
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], esp
push eax
call fcn.004108e0
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
add esi, 0x10
test ecx, ecx
je 0x40e819
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [esi], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
push 0x3c
add eax, 0x50
call fcn.00402bb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10