Function at 0x4057c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482e7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
call dword [0x490e94]
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call dword [0x490e94]
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x10]
call dword [0x490e94]
mov byte [esp + 0x6c], 3
lea ecx, [esp + 0xc]
call dword [0x490e94]
mov byte [esp + 0x6c], 4
lea ecx, [esp + 4]
call dword [0x490e94]
mov byte [esp + 0x6c], 5
lea ecx, [esp + 8]
call dword [0x490e94]
mov byte [esp + 0x6c], 6
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [0x4911b8]
add esp, 0xc
test al, al
jne 0x4058e5
mov esi, dword [esp + 0x74]
push 0x491cd4
mov ecx, esi
call dword [0x490ea0]
mov dword [esp + 0x20], 1
mov byte [esp + 0x6c], 5
lea ecx, [esp + 8]
call dword [0x490e9c]
mov byte [esp + 0x6c], 4
lea ecx, [esp + 4]
call dword [0x490e9c]
mov byte [esp + 0x6c], 3
lea ecx, [esp + 0xc]
call dword [0x490e9c]
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x10]
call dword [0x490e9c]
mov byte [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call dword [0x490e9c]
mov byte [esp + 0x6c], 0
lea ecx, [esp + 0x18]
call dword [0x490e9c]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
push ebx
push 0
lea ecx, [esp + 0x34]
call fcn.0047f43a
mov byte [esp + 0x70], 7
lea ecx, [esp + 0x20]
call dword [0x490e94]
mov bl, 8
mov byte [esp + 0x70], bl
mov eax, dword [0x4911bc]
push str.ConfigureMaterialInfo.xmt
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00405350
mov byte [esp + 0x7c], 9
push 0x493020
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00405350
add esp, 0x18
mov byte [esp + 0x70], 0xa
push eax
lea ecx, [esp + 0x24]
call dword [0x490e64]
mov byte [esp + 0x70], 9
lea ecx, [esp + 0x28]
call dword [0x490e9c]
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x2c]
call dword [0x490e9c]
push 0
push 0
lea ecx, [esp + 0x28]
call dword [0x490e6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0047ef84
test eax, eax
je 0x4059e1
xor eax, eax
push 0x14
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x38]
mov word [esp + 0x48], ax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov word [esp + 0x6e], ax
call fcn.0047f434
mov esi, dword [0x490e3c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x14]
push 0x4929b0
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0047ef78
jmp 0x4059f6
mov esi, dword [0x490e3c]
lea ecx, [esp + 0x10]
push 0x493004
push ecx
call esi
add esp, 8
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xc]
push 0x492fec
push eax
call esi
push 0x4923fc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00405350
add esp, 0x18
mov byte [esp + 0x70], 0xb
push eax
lea ecx, [esp + 0x10]
call dword [0x490ae4]
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x2c]
call dword [0x490e9c]
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push str.Register_Template
push ecx
call esi
push 0x4923fc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00405350
add esp, 0x18
mov byte [esp + 0x70], 0xc
push eax
lea ecx, [esp + 0x10]
call dword [0x490ae4]
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x2c]
call dword [0x490e9c]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push 0x492fa4
push edx
call esi
push 0x4923fc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00405350
add esp, 0x18
mov byte [esp + 0x70], 0xd
push eax
lea ecx, [esp + 0x10]
call dword [0x490ae4]
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x2c]
call dword [0x490e9c]
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push 0x492f84
push eax
call esi
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call dword [0x490ae4]
mov esi, dword [esp + 0x78]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call dword [0x490ae8]
mov dword [esp + 0x24], 1
mov byte [esp + 0x70], 7
lea ecx, [esp + 0x20]
call dword [0x490e9c]
mov byte [esp + 0x70], 6
lea ecx, [esp + 0x30]
call fcn.0047ef7e
mov byte [esp + 0x70], 5
lea ecx, [esp + 0xc]
call dword [0x490e9c]
mov byte [esp + 0x70], 4
lea ecx, [esp + 8]
call dword [0x490e9c]
mov byte [esp + 0x70], 3
lea ecx, [esp + 0x10]
call dword [0x490e9c]
mov byte [esp + 0x70], 2
lea ecx, [esp + 0x14]
call dword [0x490e9c]
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x18]
call dword [0x490e9c]
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x1c]
call dword [0x490e9c]
mov ecx, dword [esp + 0x68]
pop ebx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret 4