Function at 0x413d30
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 0x413d68
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.00431b40
mov ecx, dword [ebx + 0x64]
push str.DX_TextureGroupsTexture_Ref
shl ecx, 2
push ecx
mov dword [ebx + 0xcc], eax
call fcn.00431b40
mov edx, dword [ebx + 0x64]
push str.DX_TextureGroupsTexture_Primcount
shl edx, 2
push edx
mov dword [ebx + 0xd0], eax
call fcn.00431b40
add esp, 0x18
mov dword [ebx + 0xd4], eax
call fcn.00431a70
mov dword [0x503204], eax
call fcn.00431a80
mov dword [esp + 0x30], eax
mov dword [0x5031fc], 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 0x413e88
mov eax, dword [ebx + 0x2c]
xor esi, esi
cmp eax, edi
jle 0x413e88
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x2c], edi
cmp eax, edi
jle 0x413e7c
mov eax, dword [ebx + 0x5c]
xor ecx, ecx
add eax, edi
mov cx, word [eax + 2]
cmp ecx, esi
jne 0x413e1c
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
jmp 0x413e58
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, esi
jne 0x413e2f
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
push edx
jmp 0x413e58
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, esi
jne 0x413e42
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
push edx
jmp 0x413e58
test byte [eax], 0x80
jne 0x413e63
xor ecx, ecx
mov cx, word [eax + 8]
cmp ecx, esi
jne 0x413e63
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
push edx
push eax
push esi
push ebx
call fcn.00413b90
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 0x413e04
mov ecx, dword [esp + 0x24]
xor edi, edi
mov eax, dword [ebx + 0x2c]
inc esi
cmp esi, eax
jl 0x413df9
mov edx, dword [ebx + 0x64]
xor eax, eax
cmp edx, edi
mov dword [esp + 0x2c], eax
jle 0x41406d
jmp 0x413ea1
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 0x41404e
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.00413b90
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.00413b90
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.00413b90
mov word [ebp], ax
mov edx, dword [ebx + 0x5c]
add esp, 0x30
test byte [edi + edx], 0x80
jne 0x413fe7
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.00413b90
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 0x414028
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 0x413f01
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 0x413e9b
xor edi, edi
mov eax, dword [0x5031fc]
push 0x142
mov dword [ebx + 0xc4], eax
mov ecx, dword [0x5031fc]
push ecx
mov ecx, 0x4f7498
call fcn.00411480
push ebp
mov ecx, 0x50013c
mov dword [ebx + 0xc0], eax
call fcn.004115a0
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 [0x5031fc]
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 [0x5031fc]
xor edx, edx
cmp eax, edi
jle 0x41413d
xor eax, eax
xor ecx, ecx
mov esi, dword [0x503204]
mov edi, dword [esp + 0x28]
mov esi, dword [ecx + esi + 0xc]
mov dword [eax + edi + 0xc], esi
mov esi, dword [0x503204]
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 [0x503204]
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 [0x5031fc]
cmp edx, esi
jl 0x4140d7
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 0x4141a6
push ebp
mov ecx, 0x50013c
call fcn.004115a0
mov dword [ebx + 0xd8], eax
pop edi
pop ebp
pop ebx
add esp, 0x28
ret