Function at 0x1004ee40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f87e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1007a058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, eax
mov dword [ebp - 0x24], 0
push str.FFXiMain.dll
push 0
push str.__3BCB74148B01FF502084C0740B8B0D
mov edi, dword [edx]
mov dword [esi + 0x104], edi
mov ecx, dword [edx + 4]
mov dword [esi + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [esi + 0x100], ecx
mov eax, dword [edx + 0x10]
mov dword [esi + 0x110], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0x108], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0x114], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x120], eax
mov eax, dword [edx + 0x1c]
mov dword [esi + 0x118], eax
mov eax, dword [edx + 0x28]
mov dword [esi + 0x11c], eax
mov eax, dword [edx + 0x24]
mov dword [esi + 0x124], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x10c], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [ebp - 0x20]
mov dword [esi + 0x128], eax
lea eax, [esi + 0x34]
mov dword [ebp - 0x20], eax
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], eax
call fcn.1004fa50
mov dword [esi + 0x48], eax
test eax, eax
jne 0x1004ef36
push str.CRITICAL_ERROR:_FAILED_TO_FIND_ChatInput
mov ecx, esi
call fcn.10019840
mov eax, dword [esi]
push esi
call dword [eax + 0x40]
mov edi, dword [esi + 0x100]
add edi, 8
mov dword [ebp - 0x28], 0
mov edx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004ef70
sub edx, ecx
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.10002f50
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x138]
call fcn.10016a80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1004efd4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004efca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004f1d6
push ecx
push edx
call fcn.1001fb0c
add esp, 8
mov eax, dword [esi + 0x100]
lea ecx, [ebp - 0x40]
add eax, 8
push eax
call fcn.10002b20
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10050a50
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10002a50
mov eax, dword [esi + 0x104]
cmp byte [eax], 0
je 0x1004f019
mov ecx, esi
call fcn.100508b0
mov edx, dword [esi + 0x100]
mov eax, dword [esi + 0x104]
add edx, 8
mov ecx, edx
mov al, byte [eax]
mov byte [esi + 0x294], al
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f035
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x330]
call fcn.10002f50
mov ecx, dword [esi + 0x104]
mov ax, word [ecx + 2]
mov word [esi + 0x296], ax
mov eax, dword [ecx + 4]
mov dword [esi + 0x298], eax
mov eax, dword [esi + 0x1c]
push dword [eax]
call fcn.10015da0
movzx eax, al
mov di, ax
shl di, 4
sub di, ax
mov eax, dword [esi + 0x1c]
shl di, 2
push dword [eax]
call fcn.10015d00
movzx eax, al
add di, ax
mov word [esi + 0x29c], di
mov edi, dword [esi + 0x1c]
push dword [edi]
call fcn.10015e60
mov dword [esi + 0x2a0], eax
push dword [edi]
call fcn.10015f00
mov ecx, 0x2a
sub ecx, eax
imul eax, ecx, 0x64
cdq
mov ecx, eax
mov eax, 0x30c30c31
xor ecx, edx
sub ecx, edx
add ecx, 0x15
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 0x2a4], al
push dword [edi]
call fcn.10015f00
push 0
push 7
push edx
push eax
call fcn.10044d50
add eax, 6
push 0
push 0xc
adc edx, 0
push edx
push eax
call fcn.10044ee0
mov ecx, dword [esi + 0x100]
mov dword [esi + 0x2a8], eax
mov eax, dword [ecx + 0x94]
mov dword [esi + 0x2ac], eax
mov eax, dword [ecx + 0x9c]
mov dword [esi + 0x2b0], eax
movzx eax, byte [ecx + 0x98]
mov dword [esi + 0x2b4], eax
movzx eax, byte [ecx + 0xa0]
mov dword [esi + 0x2b8], eax
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1004f156
cmp dword [eax + 4], 0x4000000
je 0x1004f156
mov eax, dword [eax + 8]
test eax, eax
je 0x1004f156
mov eax, dword [eax + 0x74]
jmp 0x1004f158
xor eax, eax
mov dword [esi + 0x2bc], eax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x2c0], eax
mov eax, dword [ecx + 0x5c]
mov dword [esi + 0x2c4], eax
mov eax, dword [ecx + 0x68]
mov dword [esi + 0x2c8], eax
mov al, byte [ecx + 0x64]
mov byte [esi + 0x2d4], al
mov al, byte [ecx + 0x70]
mov byte [esi + 0x2d5], al
mov eax, dword [ecx + 0x60]
mov dword [esi + 0x2cc], eax
mov eax, dword [ecx + 0x6c]
mov dword [esi + 0x2d0], eax
mov eax, dword [ecx + 0x74]
mov dword [esi + 0x2d8], eax
add esi, 0x2dc
lea eax, [ecx + 0x1c]
push 0x40
push eax
push esi
call fcn.10021610
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fac4
mov esp, ebp
pop ebp
ret
call fcn.10024cca
int3