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

Disassembly:
sub esp, 0x164
mov eax, dword [0x562940]
xor eax, dword [esp + 0x164]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x178]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x16c], eax
mov dword [esp + 0x40], 0x53fe48
mov dword [esp + 0x44], 0x53fe40
mov dword [esp + 0x48], 0x53fe44
mov dword [esp + 0x4c], 0x53fe3c
mov dword [esp + 0x50], 0x53fe38
mov dword [esp + 0x54], 0x53fe34
je 0x4e2d33
mov eax, 0x1869f
mov ecx, str._renormalize
mov edx, edi
call fcn.004406d0
cmp eax, ebp
jne 0x4e2d33
mov eax, 2
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x17c]
and eax, 0xfffffff8
mov ebx, 1
mov dword [esp + 0x17c], eax
mov eax, 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x60]
xor esi, esi
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebp
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebp
mov dword [esp + 0x114], ebp
mov dword [esp + 0x118], ebx
mov dword [esp + 0x120], ebp
mov dword [esp + 0x124], ebx
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x9c], 0xbf800000
mov dword [esp + 0xa0], 0xbf800000
mov dword [esp + 0xa4], 0xbf800000
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xac], 0xbf800000
mov dword [esp + 0xb0], 0x3f800000
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xb8], 0x3f800000
mov dword [esp + 0xbc], 0xbf800000
mov dword [esp + 0xc0], 0x3f800000
mov dword [esp + 0xc4], 0xbf800000
mov dword [esp + 0xc8], 0x3f800000
mov dword [esp + 0xcc], 0x3f800000
mov dword [esp + 0xd0], 0xbf800000
mov dword [esp + 0xd4], 0xbf800000
mov dword [esp + 0xd8], 0xbf800000
mov dword [esp + 0xdc], 0xbf800000
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], 0x3e100000
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], 0x3e100000
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 0x3e100000
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
jmp 0x4e2b80
mov esi, dword [esp + 0x18]
mov ebx, 1
xor ebp, ebp
jmp 0x4e2b80
push 0x4000
call dword [0x15485b0]
add esp, 4
cmp eax, ebp
je 0x4e2bad
mov ecx, dword [0x13f8cc8]
mov dword [ecx*8 + 0x11cfa38], ebx
mov dword [ecx*8 + 0x11cfa3c], eax
inc ecx
mov dword [0x13f8cc8], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + esi + 0xe0]
mov dword [ecx], eax
mov ecx, dword [esp + esi + 0x98]
mov dword [esp + edx*4 + 0x8c], ecx
mov edx, dword [esp + esi + 0xe8]
lea ecx, [esp + edx*4 + 0x8c]
mov edx, dword [esp + esi + 0xe4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + edx*4 + 0x8c]
mov dword [esp + 0x38], ecx
mov ebp, eax
mov dword [esp + 0x20], ebx
jmp 0x4e2c00
mov esi, dword [esp + 0x18]
mov ebx, 1
lea ecx, [ecx]
fild dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
fmul dword [0x55a7f4]
fsub dword [0x55a4a8]
fmul dword [esp + esi + 0xa0]
fstp dword [edx]
jmp 0x4e2c30
mov esi, dword [esp + 0x18]
jmp 0x4e2c30
fild dword [esp + 0x14]
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x8c]
fmul dword [0x55a7f4]
fsub dword [0x55a4a8]
fmul dword [esp + esi + 0x9c]
lea esi, [esp + 0x40]
fstp dword [eax]
call fcn.00426930
fstp st(0)
fld dword [esp + 0x40]
fadd dword [0x55a4a8]
fmul dword [0x55a6a8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd qword [esp + 0x78]
fistp dword [esp + 0x3c]
fld dword [esp + 0x44]
mov cl, byte [esp + 0x3c]
fadd dword [0x55a4a8]
mov byte [ebp], cl
fmul dword [0x55a6a8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd qword [esp + 0x80]
fistp dword [esp + 0x30]
fld dword [esp + 0x48]
mov dl, byte [esp + 0x30]
fadd dword [0x55a4a8]
mov byte [ebp + 1], dl
fmul dword [0x55a6a8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd qword [esp + 0x58]
fistp dword [esp + 0x28]
mov al, byte [esp + 0x28]
mov byte [ebp + 2], al
add ebx, 2
mov byte [ebp + 3], 0xff
add ebp, 4
cmp ebx, 0x81
mov dword [esp + 0x14], ebx
jl 0x4e2c23
mov eax, dword [esp + 0x20]
add eax, 2
cmp eax, 0x81
mov dword [esp + 0x20], eax
jl 0x4e2bf4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, 0xc
add esi, 4
cmp eax, 0x48
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jl 0x4e2b6d
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
jmp 0x4e2ecc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e2d38
sub eax, edx
mov esi, eax
lea ecx, [esi + 7]
cmp ecx, 0x40
jl 0x4e2d62
push str.Cube_map_name_will_exceed_max_qpath_n
push 2
call dword [0x15485a0]
add esp, 8
xor eax, eax
jmp 0x4e2f2e
lea edx, [esp + 0x128]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4e2d70
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4e2d82
mov edx, dword [str._.tga]
mov eax, dword [0x5403e4]
mov dword [edi], edx
inc esi
mov dword [edi + 4], eax
lea ecx, [esp + esi + 0x128]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ecx
mov edi, edi
mov eax, dword [esp + ebp*4 + 0x40]
mov edx, dword [esp + 0x28]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x4e2dc0
push 1
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea esi, [esp + ebp*4 + 0x74]
push esi
lea ecx, [esp + 0x140]
call fcn.004e27b0
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x4e2ff8
test ebp, ebp
movzx eax, word [esp + 0x20]
jne 0x4e2e2a
movzx ecx, word [esp + 0x18]
cmp eax, ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
jne 0x4e2f4b
mov ebx, ecx
mov edi, eax
jmp 0x4e2e4d
cmp edi, eax
jne 0x4e2f83
movzx ecx, word [esp + 0x18]
cmp ebx, ecx
jne 0x4e2f83
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jne 0x4e2f67
inc ebp
cmp ebp, 6
jl 0x4e2db0
mov ecx, dword [esp + 0x60]
push edi
mov edx, ebx
call fcn.004e2650
mov esi, dword [esp + 0x68]
add esp, 4
push edi
mov edx, ebx
mov ecx, esi
call fcn.004e2650
add esp, 4
push esi
mov ecx, ebx
mov eax, edi
call fcn.004e26d0
add esp, 4
push edi
push esi
mov eax, ebx
call fcn.004e2730
mov eax, dword [esp + 0x70]
push edi
push eax
mov eax, ebx
call fcn.004e2730
mov ecx, dword [esp + 0x7c]
add esp, 0x10
push ecx
mov ecx, ebx
mov eax, edi
call fcn.004e26d0
mov ecx, dword [esp + 0x74]
add esp, 4
push edi
mov edx, ebx
call fcn.004e2650
mov ecx, dword [esp + 0x78]
add esp, 4
push edi
mov edx, ebx
call fcn.004e2650
add esp, 4
mov edx, dword [esp + 0x180]
mov eax, dword [esp + 0x17c]
push edx
or eax, 0x30
push eax
push ebx
push edi
mov edi, dword [esp + 0x188]
push 0x8513
call fcn.004e0b60
add esp, 0x14
mov edi, eax
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x60]
push 0x1908
lea eax, [esi + 0x8515]
push eax
mov eax, dword [esp + 0x18c]
push ecx
mov ecx, edi
call fcn.004e0ce0
add esp, 0xc
test eax, eax
je 0x4e2f9f
inc esi
cmp esi, 6
jl 0x4e2f00
mov eax, edi
mov ecx, dword [esp + 0x16c]
xor ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x164
jmp fcn.00523319
lea eax, [esp + 0x128]
push eax
push str.Cube_map_face_images_should_be_square___s__n
push 2
call dword [0x15485a0]
add esp, 0xc
xor eax, eax
jmp 0x4e2f2e
lea ecx, [esp + 0x128]
push ecx
push str.Cube_map_face_images_are_not_all_the_same_format___s__n
push 2
call dword [0x15485a0]
add esp, 0xc
xor eax, eax
jmp 0x4e2f2e
lea edx, [esp + 0x128]
push edx
push str.Cube_map_face_images_are_not_all_the_same_size___s__n
push 2
call dword [0x15485a0]
add esp, 0xc
xor eax, eax
jmp 0x4e2f2e
mov eax, edi
call fcn.004ded30
mov edx, dword [edi + 0x74]
mov ecx, dword [0x15394bc]
dec ecx
mov dword [eax*4 + 0x11cfd40], edx
mov eax, dword [0x1533540]
mov dword [0x15394bc], ecx
mov ecx, dword [eax*4 + 0x1533548]
mov eax, dword [edi + 0x58]
cmp ecx, eax
lea esi, [edi + 0x58]
jne 0x4e2fef
mov edx, dword [edi + 0x54]
push 0
push edx
call dword [0x153401c]
mov eax, dword [0x1533540]
mov dword [eax*4 + 0x1533548], 0
push esi
push 1
call dword [0x15344a0]
xor eax, eax
jmp 0x4e2f2e