Function at 0x413d00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push edi
mov eax, dword [ebx + 0x2c]
xor edi, edi
cmp eax, edi
jne 0x413d38
mov dword [ebx + 0xcc], edi
mov dword [ebx + 0xd0], edi
mov dword [ebx + 0xd4], edi
mov dword [ebx + 0xc0], edi
mov dword [ebx + 0xc8], edi
pop edi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [ebx + 0x10]
push esi
or eax, 0x80000
push str.DX_TextureGroups
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x64]
shl eax, 2
push eax
call fcn.00431b60
mov ecx, dword [ebx + 0x64]
push str.DX_TextureGroupsTexture_Ref
shl ecx, 2
push ecx
mov dword [ebx + 0xcc], eax
call fcn.00431b60
mov edx, dword [ebx + 0x64]
push str.DX_TextureGroupsTexture_Primcount
shl edx, 2
push edx
mov dword [ebx + 0xd0], eax
call fcn.00431b60
add esp, 0x18
mov dword [ebx + 0xd4], eax
call fcn.00431a90
mov dword [0x5061e4], eax
call fcn.00431aa0
mov dword [esp + 0x30], eax
mov dword [0x5061dc], edi
mov al, byte [ebx + 0x10]
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x24], ecx
test al, 4
mov dword [esp + 0x3c], ebp
je 0x413e58
mov eax, dword [ebx + 0x2c]
xor esi, esi
cmp eax, edi
jle 0x413e58
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x2c], edi
cmp eax, edi
jle 0x413e4c
mov eax, dword [ebx + 0x5c]
xor ecx, ecx
add eax, edi
mov cx, word [eax + 2]
cmp ecx, esi
jne 0x413dec
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
jmp 0x413e28
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, esi
jne 0x413dff
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
push edx
jmp 0x413e28
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, esi
jne 0x413e12
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
push edx
jmp 0x413e28
test byte [eax], 0x80
jne 0x413e33
xor ecx, ecx
mov cx, word [eax + 8]
cmp ecx, esi
jne 0x413e33
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
push edx
push eax
push esi
push ebx
call fcn.00413b60
add esp, 0x10
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x54]
inc eax
add edi, 0x30
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x413dd4
mov ecx, dword [esp + 0x24]
xor edi, edi
mov eax, dword [ebx + 0x2c]
inc esi
cmp esi, eax
jl 0x413dc9
mov edx, dword [ebx + 0x64]
xor eax, eax
cmp edx, edi
mov dword [esp + 0x2c], eax
jle 0x41403d
jmp 0x413e71
mov ecx, dword [esp + 0x24]
xor edi, edi
mov edx, dword [ebx + 0x5c]
mov esi, dword [ebx + 0xd0]
mov dword [esp + 0x1c], edi
lea edi, [ecx + ecx*2]
shl edi, 4
mov edx, dword [edi + edx + 0xc]
mov dword [esi + eax*4], edx
mov edx, dword [ebx + 0xcc]
mov dword [edx + eax*4], ebp
mov edx, dword [ebx + 0x6c]
cmp ecx, dword [edx + eax*4]
jge 0x41401e
mov eax, dword [esp + 0x30]
lea ecx, [eax + ebp*2 + 0xa]
lea esi, [eax + ebp*2]
mov dword [esp + 0x20], ecx
lea edx, [eax + ebp*2 + 8]
lea ebp, [eax + ebp*2 + 4]
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
lea edx, [ecx + eax*2 + 6]
lea eax, [ecx + eax*2 + 2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x5c]
mov edx, dword [edi + ecx + 0x14]
lea eax, [edi + ecx]
push edx
xor edx, edx
mov ecx, dword [eax + 0x10]
mov dx, word [eax + 2]
push ecx
push edx
push ebx
call fcn.00413b60
mov word [esi], ax
mov eax, dword [ebx + 0x5c]
add eax, edi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
xor ecx, ecx
mov cx, word [eax + 4]
push edx
push ecx
push ebx
call fcn.00413b60
mov edx, dword [esp + 0x30]
mov word [edx], ax
mov eax, dword [ebx + 0x5c]
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
xor ecx, ecx
mov cx, word [eax + 6]
push edx
push ecx
push ebx
call fcn.00413b60
mov word [ebp], ax
mov edx, dword [ebx + 0x5c]
add esp, 0x30
test byte [edi + edx], 0x80
jne 0x413fb7
mov ecx, dword [esp + 0x14]
mov ax, word [esi]
mov word [ecx], ax
mov eax, dword [esp + 0x18]
mov dx, word [ebp]
mov word [eax], dx
mov ecx, dword [ebx + 0x5c]
mov edx, dword [edi + ecx + 0x2c]
lea eax, [edi + ecx]
push edx
xor edx, edx
mov ecx, dword [eax + 0x28]
mov dx, word [eax + 8]
push ecx
push edx
push ebx
call fcn.00413b60
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add esp, 0x10
mov word [ecx], ax
mov eax, dword [esp + 0x3c]
add eax, 6
mov dword [esp + 0x3c], eax
mov eax, 0xc
add edx, eax
add esi, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
add edx, eax
add ebp, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
add eax, 2
jmp 0x413ff8
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add eax, 3
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, 6
add edx, eax
add esi, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
add edx, eax
add ebp, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
inc eax
mov ecx, dword [ebx + 0x6c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
inc eax
add edi, 0x30
cmp eax, dword [ecx + edx*4]
mov dword [esp + 0x24], eax
jl 0x413ed1
mov ebp, dword [esp + 0x3c]
mov eax, edx
mov ecx, dword [ebx + 0xd4]
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebx + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x413e6b
xor edi, edi
mov eax, dword [0x5061dc]
push 0x142
mov dword [ebx + 0xc4], eax
mov ecx, dword [0x5061dc]
push ecx
mov ecx, 0x4fa478
call fcn.00411460
push ebp
mov ecx, 0x50311c
mov dword [ebx + 0xc0], eax
call fcn.00411580
mov edx, dword [ebx + 0xc0]
lea ecx, [esp + 0x28]
push edi
mov dword [ebx + 0xc8], eax
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [0x5061dc]
mov edx, dword [eax]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edi
push eax
call dword [edx + 0x2c]
mov eax, dword [0x5061dc]
xor edx, edx
cmp eax, edi
jle 0x41410d
xor eax, eax
xor ecx, ecx
mov esi, dword [0x5061e4]
mov edi, dword [esp + 0x28]
mov esi, dword [ecx + esi + 0xc]
mov dword [eax + edi + 0xc], esi
mov esi, dword [0x5061e4]
mov ebp, dword [esp + 0x28]
lea esi, [ecx + esi + 0x10]
mov edi, dword [esi]
mov dword [eax + ebp + 0x10], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esi + 4]
mov dword [eax + edi + 0x14], esi
mov esi, dword [0x5061e4]
mov edi, dword [esp + 0x28]
add esi, ecx
add edi, eax
inc edx
mov ebp, dword [esi]
add ecx, 0x1c
mov dword [edi], ebp
add eax, 0x18
mov ebp, dword [esi + 4]
mov dword [edi + 4], ebp
mov esi, dword [esi + 8]
mov dword [edi + 8], esi
mov esi, dword [0x5061dc]
cmp edx, esi
jl 0x4140a7
mov ebp, dword [esp + 0x3c]
xor edi, edi
mov edx, dword [ebx + 0xc0]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebx + 0xc8]
lea esi, [ebp + ebp]
push edi
mov eax, dword [edx]
lea edx, [esp + 0x38]
push edx
push esi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
mov edi, dword [esp + 0x34]
mov ecx, esi
mov esi, dword [esp + 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx]
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [ebx + 0x10]
pop esi
test ah, 0x40
je 0x414176
push ebp
mov ecx, 0x50311c
call fcn.00411580
mov dword [ebx + 0xd8], eax
pop edi
pop ebp
pop ebx
add esp, 0x28
ret