Function at 0x5d3290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
push ebp
mov ebp, dword [esp + 0x60]
push edi
lea ecx, [ebp + 0x4d8]
xor edi, edi
mov dword [esp + 0x20], ecx
xor eax, eax
cmp dword [ecx + eax*4], edi
jne 0x5d32bd
cmp dword [ecx + eax*4 + 4], edi
jne 0x5d32bc
add eax, 2
cmp eax, 0xe
jb 0x5d32a7
jmp 0x5d32bd
inc eax
cmp eax, 0xe
jne 0x5d32d7
push str.NiDX9SourceCubeMapData::Create__No_Cube_Map_texture_formats_supported_n
call fcn.0056f630
add esp, 4
pop edi
xor eax, eax
pop ebp
add esp, 0x54
ret
push esi
push 0x84
call fcn.005354b8
mov esi, eax
add esp, 4
cmp esi, edi
je 0x5d3318
mov eax, dword [esp + 0x64]
push ebp
push eax
mov ecx, esi
call fcn.005d0300
mov dword [esi], 0x6ca4c0
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
jmp 0x5d331a
xor esi, esi
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], esi
push ebx
xor ebp, ebp
add esi, 0x6c
xor ebx, ebx
add ecx, 0x7c
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov edi, edi
mov ecx, dword [esp + ebx*4 + 0x34]
cmp ecx, edi
mov byte [esp + ebx + 0x2c], 0
je 0x5d337c
dec dword [ecx + 4]
jne 0x5d3378
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esp + ebx*4 + 0x34], edi
mov eax, dword [esp + 0x18]
mov esi, dword [eax - 0x18]
cmp esi, edi
je 0x5d33b0
call fcn.0054c090
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 8]
mov ecx, dword [esp + ebx*4 + 0x34]
mov esi, eax
cmp ecx, esi
je 0x5d33d4
cmp ecx, edi
je 0x5d33c9
dec dword [ecx + 4]
jne 0x5d33c9
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x5d33c9
mov esi, dword [eax]
mov ecx, dword [esp + ebx*4 + 0x34]
cmp ecx, esi
je 0x5d33d4
cmp ecx, edi
je 0x5d33c9
dec dword [ecx + 4]
jne 0x5d33c9
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, edi
mov dword [esp + ebx*4 + 0x34], esi
je 0x5d33d4
inc dword [esi + 4]
cmp dword [esp + ebx*4 + 0x34], edi
jne 0x5d3417
push 1
push VariantClear
call fcn.0054df40
mov ecx, dword [esp + ebx*4 + 0x3c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d340d
cmp ecx, edi
je 0x5d3402
dec dword [ecx + 4]
jne 0x5d3402
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, edi
mov dword [esp + ebx*4 + 0x34], esi
je 0x5d340d
inc dword [esi + 4]
mov byte [esp + ebx + 0x2c], 1
mov byte [esp + 0x12], 1
cmp ebp, edi
mov eax, dword [esp + ebx*4 + 0x34]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
jne 0x5d349f
mov ecx, eax
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x38]
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x5d3450
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
cmp eax, edi
je 0x5d3450
lea ecx, [eax - 1]
and ecx, eax
neg ecx
sbb cl, cl
inc cl
mov byte [esp + 0x13], cl
jne 0x5d348d
push 1
push VariantClear
call fcn.0054df40
mov ecx, dword [esp + ebx*4 + 0x3c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d3483
cmp ecx, edi
je 0x5d3478
dec dword [ecx + 4]
jne 0x5d3478
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, edi
mov dword [esp + ebx*4 + 0x34], esi
je 0x5d3483
inc dword [esi + 4]
mov byte [esp + ebx + 0x2c], 1
mov byte [esp + 0x12], 1
mov eax, dword [esp + ebx*4 + 0x34]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x44]
mov ebp, dword [ecx]
mov dword [esp + 0x20], edx
jmp 0x5d34f3
mov ecx, dword [eax + 0x38]
cmp ebp, dword [ecx]
jne 0x5d34b6
mov edx, dword [eax + 0x3c]
cmp ebp, dword [edx]
jne 0x5d34b6
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x44]
je 0x5d34f3
push 1
push VariantClear
call fcn.0054df40
mov ecx, dword [esp + ebx*4 + 0x3c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d34e9
cmp ecx, edi
je 0x5d34de
dec dword [ecx + 4]
jne 0x5d34de
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, edi
mov dword [esp + ebx*4 + 0x34], esi
je 0x5d34e9
inc dword [esi + 4]
mov byte [esp + ebx + 0x2c], 1
mov byte [esp + 0x12], 1
mov eax, dword [esp + ebx*4 + 0x34]
mov ecx, dword [esp + 0x24]
add eax, 0xc
cmp ecx, edi
je 0x5d3551
mov edx, dword [ecx + 0x1c]
cmp edx, dword [eax + 0x1c]
jne 0x5d3512
mov ecx, dword [ecx + 0x20]
cmp ecx, dword [eax + 0x20]
je 0x5d3555
push 1
push 0x80000002
call fcn.0054df40
mov ecx, dword [esp + ebx*4 + 0x3c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d3545
cmp ecx, edi
je 0x5d353a
dec dword [ecx + 4]
jne 0x5d353a
mov edx, dword [ecx]
push 1
call dword [edx]
cmp esi, edi
mov dword [esp + ebx*4 + 0x34], esi
je 0x5d3545
inc dword [esi + 4]
mov byte [esp + ebx + 0x2c], 1
mov byte [esp + 0x12], 1
jmp 0x5d3555
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, 4
inc ebx
add edx, eax
add ecx, eax
cmp ebx, 6
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jb 0x5d3360
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x68]
push eax
add ebp, 0x20
add ecx, 0xc
push ebp
push ecx
mov ecx, esi
call fcn.005ce740
mov ebx, eax
cmp ebx, edi
jne 0x5d360e
mov edx, 0x1010101
mov dword [esp + 0x2c], edx
xor edi, edi
mov byte [esp + 0x12], 1
mov word [esp + 0x30], dx
jmp 0x5d35c0
push 1
push 0x80000002
call fcn.0054df40
mov ecx, dword [esp + edi*4 + 0x3c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d35f3
test ecx, ecx
je 0x5d35e8
dec dword [ecx + 4]
jne 0x5d35e8
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov dword [esp + edi*4 + 0x34], esi
je 0x5d35f3
inc dword [esi + 4]
inc edi
cmp edi, 6
jb 0x5d35c0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x5a0]
mov ebx, dword [eax + ecx*4 + 0x468]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
cmp eax, 1
je 0x5d3638
cmp eax, 2
jne 0x5d3632
mov al, byte [0x72999c]
test al, al
je 0x5d3632
mov edx, dword [esp + 0x6c]
mov al, byte [edx + 0x460]
test al, al
jne 0x5d3638
mov byte [esi + 0x4c], 0
jmp 0x5d363c
mov byte [esi + 0x4c], 1
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x20]
lea edi, [ebp + 0xc]
mov ecx, 9
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x40], eax
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
xor edi, edi
mov cl, byte [esp + edi + 0x2c]
test cl, cl
je 0x5d36b5
mov ecx, dword [esp + edi*4 + 0x4c]
mov esi, dword [esp + edi*4 + 0x34]
cmp ecx, esi
je 0x5d3755
cmp ecx, eax
je 0x5d36a1
dec dword [ecx + 4]
jne 0x5d36a1
mov edx, dword [ecx]
push 1
call dword [edx]
xor eax, eax
cmp esi, eax
mov dword [esp + edi*4 + 0x4c], esi
je 0x5d3755
inc dword [esi + 4]
jmp 0x5d3755
call fcn.0054c090
mov edx, dword [eax]
mov ecx, dword [esp + edi*4 + 0x34]
mov dword [esp + 0x28], edx
xor edx, edx
mov dl, byte [ebp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push ebx
push ecx
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [esp + edi*4 + 0x4c]
mov esi, eax
cmp ecx, esi
je 0x5d36fa
test ecx, ecx
je 0x5d36ef
dec dword [ecx + 4]
jne 0x5d36ef
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov dword [esp + edi*4 + 0x4c], esi
je 0x5d36fa
inc dword [esi + 4]
mov eax, dword [esp + edi*4 + 0x4c]
test eax, eax
jne 0x5d373f
push 1
push VariantClear
call fcn.0054df40
mov ecx, dword [esp + edi*4 + 0x54]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d3735
test ecx, ecx
je 0x5d372a
dec dword [ecx + 4]
jne 0x5d372a
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [esp + edi*4 + 0x4c], esi
je 0x5d3735
inc dword [esi + 4]
mov byte [esp + edi + 0x2c], 1
mov byte [esp + 0x12], 1
mov eax, dword [esp + edi*4 + 0x4c]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov eax, dword [edx + ecx*4]
mov ebp, dword [esp + 0x14]
add dword [ebp + 0x50], eax
xor eax, eax
inc edi
cmp edi, 6
jb 0x5d3678
mov cl, byte [esp + 0x12]
test cl, cl
pop ebx
je 0x5d37c6
xor edi, edi
lea ebx, [ebx]
mov al, byte [esp + edi + 0x28]
test al, al
jne 0x5d37ab
push 1
push 0x80000002
call fcn.0054df40
mov ecx, dword [esp + edi*4 + 0x50]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x5d37ab
test ecx, ecx
je 0x5d37a0
dec dword [ecx + 4]
jne 0x5d37a0
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov dword [esp + edi*4 + 0x48], esi
je 0x5d37ab
inc dword [esi + 4]
inc edi
cmp edi, 6
jb 0x5d3770
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
mov eax, dword [edx + ecx*4]
lea eax, [eax + eax*2]
shl eax, 1
mov dword [ebp + 0x50], eax
mov ecx, dword [esp + 0x68]
mov al, byte [ecx + 0x460]
test al, al
je 0x5d37dd
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 0x44]
jmp 0x5d37e2
mov ecx, 1
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 8]
push 0
lea esi, [ebp + 0x68]
push esi
push 1
push edx
push 0
mov dword [ebp + 0x48], ecx
mov eax, dword [eax + 0x60]
mov edi, dword [eax]
push ecx
mov ecx, dword [ebp + 0x40]
push ecx
push eax
call dword [edi + 0x64]
test eax, eax
jge 0x5d3822
push eax
call fcn.005d9d90
push eax
push str.NiDX9SourceCubeMapData::CreateSurf__Failed_CreateImageSurface____s_n
call fcn.0056f630
add esp, 0xc
mov dword [esi], 0
cmp dword [esi], 0
jne 0x5d3882
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea esi, [esp + 0x60]
mov edi, 6
lea esp, [esp]
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x5d3855
dec dword [ecx + 4]
jne 0x5d3855
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x5d3840
lea esi, [esp + 0x48]
mov edi, 6
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x5d3876
dec dword [ecx + 4]
jne 0x5d3876
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x5d3861
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x54
ret
xor esi, esi
mov eax, dword [esp + esi*4 + 0x48]
push esi
push eax
mov ecx, ebp
call fcn.005d3210
inc esi
cmp esi, 6
jb 0x5d3884
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x30]
push edx
mov ecx, ebp
call fcn.005d02b0
mov eax, dword [ebp + 4]
mov dword [eax + 0x2c], ebp
lea esi, [esp + 0x60]
mov edi, 6
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x5d38ca
dec dword [ecx + 4]
jne 0x5d38ca
mov edx, dword [ecx]
push 1
call dword [edx]
dec edi
jne 0x5d38b5
lea esi, [esp + 0x48]
mov edi, 6
mov ecx, dword [esi - 4]
sub esi, 4
test ecx, ecx
je 0x5d38eb
dec dword [ecx + 4]
jne 0x5d38eb
mov eax, dword [ecx]
push 1
call dword [eax]
dec edi
jne 0x5d38d6
pop esi
pop edi
mov eax, ebp
pop ebp
add esp, 0x54
ret