Function at 0x5c8e21
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x70ef94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00407e50
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x14]
push ecx
push 0x7e3f80
push edx
mov dword [esp + 0xa8], 0
call fcn.005c2b70
add esp, 0xc
mov edx, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x40], ecx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 0
call fcn.00407e50
mov eax, dword [esp + 0xa8]
lea eax, [eax + eax*4]
lea ecx, [eax*4 + 0x847588]
call fcn.00461f40
mov edi, eax
push 0
mov cl, byte [edi]
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x58]
call fcn.00407e50
mov edx, dword [0x71eb00]
lea ecx, [esp + 0x54]
push edx
push 0
push edi
call fcn.00407c50
mov al, byte [esp + 0x34]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0xa0], 3
mov byte [esp + 0x28], al
call fcn.00407e50
mov ecx, dword [0x71eb00]
lea edx, [esp + 0x34]
push ecx
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00407c50
mov bl, 4
push 0x20
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], bl
call fcn.0040cb30
mov eax, dword [0x71eb00]
lea ecx, [esp + 0x54]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0040cc00
mov edx, dword [esi + 4]
inc edx
push 0
mov dword [esi + 4], edx
mov dl, byte [esp + 0x17]
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], dl
call fcn.00407e50
mov edi, str._material_name_list
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._material_name_list
lea ecx, [esp + 0x4c]
call fcn.00415530
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0xa8], 5
call fcn.005c9250
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], bl
call fcn.00407e50
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
call fcn.00407e50
mov edi, str._material_list
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._material_list
lea ecx, [esp + 0x4c]
call fcn.00415530
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, esi
mov byte [esp + 0xa8], 6
call fcn.005c9250
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], bl
call fcn.00407e50
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.00407e50
mov edi, str._material
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._material
lea ecx, [esp + 0x1c]
call fcn.00415530
lea edx, [esp + 0x13]
lea ecx, [esp + 0x64]
push edx
mov byte [esp + 0xa0], 7
call fcn.004f6840
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 8
call fcn.004558b0
lea ecx, [esp + 0x44]
lea ebp, [esi + 0xc]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0xa4], 9
call fcn.00455780
mov esi, dword [eax]
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 8
call fcn.004d6390
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 7
call fcn.00407e50
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x20], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], edx
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov byte [esp + 0xa0], bl
call fcn.00407e50
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407e50
mov edi, str._material_amount
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._material_amount
lea ecx, [esp + 0x1c]
call fcn.00415530
lea ecx, [esp + 0x13]
mov byte [esp + 0x9c], 0xb
push ecx
lea ecx, [esp + 0x68]
call fcn.004f6840
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 0xc
call fcn.004558b0
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
mov byte [esp + 0xa4], 0xd
call fcn.00455780
mov esi, dword [eax]
lea ecx, [esp + 0x74]
mov byte [esp + 0x9c], 0xc
call fcn.004d6390
mov byte [esp + 0x9c], 0xb
push 1
lea ecx, [esp + 0x68]
call fcn.00407e50
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00550b10
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], bl
call fcn.00407e50
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00407e50
mov edi, str._material_name
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._material_name
lea ecx, [esp + 0x1c]
call fcn.00415530
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0xa4], 0xe
call fcn.004376a0
mov ecx, eax
call fcn.00550b10
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], bl
call fcn.00407e50
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa0], 3
call fcn.00407e50
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 0
call fcn.00407e50
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00407e50
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8