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

Disassembly:
sub esp, 0x164
mov eax, dword [0x570930]
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], 0x54b550
mov dword [esp + 0x44], 0x54b548
mov dword [esp + 0x48], 0x54b54c
mov dword [esp + 0x4c], 0x54b544
mov dword [esp + 0x50], 0x54b540
mov dword [esp + 0x54], 0x54b53c
je 0x4ee4a3
mov eax, 0x1869f
mov ecx, str._renormalize
mov edx, edi
call fcn.0044aa90
cmp eax, ebp
jne 0x4ee4a3
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 0x4ee2f0
mov esi, dword [esp + 0x18]
mov ebx, 1
xor ebp, ebp
jmp 0x4ee2f0
push 0x4000
call dword [0x16d8930]
add esp, 4
cmp eax, ebp
je 0x4ee31d
mov ecx, dword [0x14072f0]
mov dword [ecx*8 + 0x11de060], ebx
mov dword [ecx*8 + 0x11de064], eax
inc ecx
mov dword [0x14072f0], 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 0x4ee370
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 [0x569174]
fsub dword [0x568e60]
fmul dword [esp + esi + 0xa0]
fstp dword [edx]
jmp 0x4ee3a0
mov esi, dword [esp + 0x18]
jmp 0x4ee3a0
fild dword [esp + 0x14]
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x8c]
fmul dword [0x569174]
fsub dword [0x568e60]
fmul dword [esp + esi + 0x9c]
lea esi, [esp + 0x40]
fstp dword [eax]
call fcn.0042ddc0
fstp st(0)
fld dword [esp + 0x40]
fadd dword [0x568e60]
fmul dword [0x569014]
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 [0x568e60]
mov byte [ebp], cl
fmul dword [0x569014]
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 [0x568e60]
mov byte [ebp + 1], dl
fmul dword [0x569014]
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 0x4ee393
mov eax, dword [esp + 0x20]
add eax, 2
cmp eax, 0x81
mov dword [esp + 0x20], eax
jl 0x4ee364
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 0x4ee2dd
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
jmp 0x4ee63c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ee4a8
sub eax, edx
mov esi, eax
lea ecx, [esi + 7]
cmp ecx, 0x40
jl 0x4ee4d2
push str.Cube_map_name_will_exceed_max_qpath_n
push 2
call dword [0x16d8920]
add esp, 8
xor eax, eax
jmp 0x4ee69e
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 0x4ee4e0
lea edi, [esp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ee4f2
mov edx, dword [str._.tga]
mov eax, dword [0x54baec]
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 0x4ee530
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.004edf20
mov eax, dword [esi]
add esp, 0x18
test eax, eax
je 0x4ee768
test ebp, ebp
movzx eax, word [esp + 0x20]
jne 0x4ee59a
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 0x4ee6bb
mov ebx, ecx
mov edi, eax
jmp 0x4ee5bd
cmp edi, eax
jne 0x4ee6f3
movzx ecx, word [esp + 0x18]
cmp ebx, ecx
jne 0x4ee6f3
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
jne 0x4ee6d7
inc ebp
cmp ebp, 6
jl 0x4ee520
mov ecx, dword [esp + 0x60]
push edi
mov edx, ebx
call fcn.004eddc0
mov esi, dword [esp + 0x68]
add esp, 4
push edi
mov edx, ebx
mov ecx, esi
call fcn.004eddc0
add esp, 4
push esi
mov ecx, ebx
mov eax, edi
call fcn.004ede40
add esp, 4
push edi
push esi
mov eax, ebx
call fcn.004edea0
mov eax, dword [esp + 0x70]
push edi
push eax
mov eax, ebx
call fcn.004edea0
mov ecx, dword [esp + 0x7c]
add esp, 0x10
push ecx
mov ecx, ebx
mov eax, edi
call fcn.004ede40
mov ecx, dword [esp + 0x74]
add esp, 4
push edi
mov edx, ebx
call fcn.004eddc0
mov ecx, dword [esp + 0x78]
add esp, 4
push edi
mov edx, ebx
call fcn.004eddc0
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.004ec310
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.004ec490
add esp, 0xc
test eax, eax
je 0x4ee70f
inc esi
cmp esi, 6
jl 0x4ee670
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.0052e7b9
lea eax, [esp + 0x128]
push eax
push str.Cube_map_face_images_should_be_square___s__n
push 2
call dword [0x16d8920]
add esp, 0xc
xor eax, eax
jmp 0x4ee69e
lea ecx, [esp + 0x128]
push ecx
push str.Cube_map_face_images_are_not_all_the_same_format___s__n
push 2
call dword [0x16d8920]
add esp, 0xc
xor eax, eax
jmp 0x4ee69e
lea edx, [esp + 0x128]
push edx
push str.Cube_map_face_images_are_not_all_the_same_size___s__n
push 2
call dword [0x16d8920]
add esp, 0xc
xor eax, eax
jmp 0x4ee69e
mov eax, edi
call fcn.004ea4e0
mov edx, dword [edi + 0x74]
mov ecx, dword [0x16c983c]
dec ecx
mov dword [eax*4 + 0x11de368], edx
mov eax, dword [0x16c38c0]
mov dword [0x16c983c], ecx
mov ecx, dword [eax*4 + 0x16c38c8]
mov eax, dword [edi + 0x58]
cmp ecx, eax
lea esi, [edi + 0x58]
jne 0x4ee75f
mov edx, dword [edi + 0x54]
push 0
push edx
call dword [0x16c439c]
mov eax, dword [0x16c38c0]
mov dword [eax*4 + 0x16c38c8], 0
push esi
push 1
call dword [0x16c4820]
xor eax, eax
jmp 0x4ee69e