Function at 0x4fe3b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5b8678]
push ebx
push esi
mov esi, ecx
test eax, eax
push edi
mov dword [ebp - 0x14], esi
je 0x4fed3e
cmp byte [0x706592], 0xb
je 0x4fed3e
mov edi, dword [esi + 0x44]
shl edi, 1
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.005674f0
mov ecx, edi
mov ebx, esp
mov edx, ecx
or eax, 0xffffffff
mov edi, ebx
mov dword [ebp - 0x1c], ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
mov dword [ebp - 0x30], edx
rep stosb byte es:[edi], al
mov al, byte [esi + 0x50]
test al, al
jb 0x4fed3e
mov dword [ebp - 0x18], 0x68f428
jmp 0x4fe422
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], 0
movsx ecx, word [eax]
mov eax, dword [0x6873fc]
mov dword [ebp - 4], ecx
test eax, eax
je 0x4fe453
mov ecx, dword [esi + 0x44]
mov edi, ebx
shl ecx, 1
mov ebx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebp - 0x18], 0x68f428
je 0x4fe479
mov eax, dword [esi + 0x58]
mov ecx, dword [0x67bb08]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4fe479
test byte [eax + 0x40], 0x80
jne 0x4fed24
mov ax, word [edx*2 + 0x6831a8]
test ax, ax
je 0x4fe81d
movsx ecx, word [edx*2 + 0x67bf10]
movsx edx, ax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004f3fd0
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fe6fd
mov ecx, dword [esi + 0x2c]
mov edx, dword [ebp - 4]
xor eax, eax
lea ecx, [ecx + edx*8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x4fe4d2
cmp word [ecx + 6], 0
je 0x4fe6d9
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx + eax*2]
cmp word [edi + edx*2], 0xffff
jne 0x4fe6d9
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4fe506
push str._MultiTex
push 0x2a
push str.C:mm_src_agiworld_texsort.h
push str.Assertion_failed___s__d_:__s
call fcn.00558720
add esp, 0x10
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x20]
cmp eax, ecx
jne 0x4fe51d
push str.Vertex_pool_overrun.
call fcn.005588f0
add esp, 4
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 4]
mov ecx, eax
xor edx, edx
shl ecx, 5
add edi, ecx
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dx, word [eax + ecx*2]
mov eax, dword [esi + 0x28]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, edi
shl ecx, 4
add ecx, 0x6a10f0
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
xor eax, eax
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x14], 0xffffffff
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x10], edx
mov edx, dword [ebp - 0x20]
mov ax, word [ecx + edx*2]
mov edx, dword [esi + 0x28]
xor ecx, ecx
mov cx, word [edx + eax*2]
mov edx, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [ecx + ecx*2]
lea edx, [edx + ecx*4]
xor ecx, ecx
mov cl, byte [esi + eax]
mov eax, ecx
lea eax, [eax + eax*2]
lea ecx, [eax*4 + 0x5b8bf0]
mov eax, dword [0x706538]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x3c]
lea esi, [eax + 0xec]
push esi
call fcn.00546580
lea ecx, [ebp - 0x3c]
call fcn.00548400
push ecx
lea ecx, [ebp - 0x3c]
fstp dword [esp]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004550f0
mov edx, dword [ebp - 0xc]
push esi
lea ecx, [ebp - 0x6c]
call fcn.005465f0
fld dword [ebp - 0x6c]
fmul dword [ebp - 0x3c]
fld dword [ebp - 0x68]
fmul dword [ebp - 0x38]
mov edx, dword [0x706538]
faddp st(1)
fld dword [ebp - 0x64]
fmul dword [ebp - 0x34]
lea eax, [edx + 0x5c]
lea edx, [ebp - 0xd8]
faddp st(1)
fadd st(0), st(0)
fld st(0)
fld st(1)
fxch st(1)
fmul dword [ebp - 0x6c]
fxch st(1)
fmul dword [ebp - 0x68]
fxch st(1)
fsubr dword [ebp - 0x3c]
fxch st(2)
fmul dword [ebp - 0x64]
fxch st(1)
fsubr dword [ebp - 0x38]
fxch st(1)
fsubr dword [ebp - 0x34]
fxch st(2)
fstp dword [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x54]
fstp dword [ebp - 0xd4]
fstp dword [ebp - 0xd0]
call fcn.005465f0
fld dword [ebp - 0x4c]
fsub dword [0x5951ac]
fld dword [ebp - 0x54]
fmul dword [ebp - 0x54]
fld st(1)
fmul st(2)
fld dword [ebp - 0x50]
fmul dword [ebp - 0x50]
fxch st(2)
faddp st(1)
fxch st(1)
push ecx
faddp st(1)
fstp dword [esp]
fstp st(0)
call fcn.00552ad0
fmul dword [0x5951cc]
add esp, 4
fcom dword [0x5951a8]
fnstsw ax
test ah, 0x40
jne 0x4fe6a9
fld st(0)
fmul dword [ebp - 0x54]
fxch st(1)
fmul dword [ebp - 0x50]
fxch st(1)
fsub dword [0x5951c0]
fxch st(1)
fsub dword [0x5951c0]
fxch st(1)
fstp dword [edi + 0x18]
fstp dword [edi + 0x1c]
jmp 0x4fe6b6
mov eax, 0x3f000000
fstp st(0)
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov esi, dword [ebp - 0x14]
mov cx, word [edx + eax*2]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 4
mov dword [ebp - 0x20], eax
jl 0x4fe4c2
mov eax, dword [ebp - 4]
movsx eax, word [eax*2 + 0x687408]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4fe4b1
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4fe711
push str.Bug_
call fcn.005588f0
add esp, 4
mov ecx, dword [ebp - 0x18]
movsx eax, word [ecx]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4fe81a
jmp 0x4fe728
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x2c]
mov cx, word [edx + eax*8 + 6]
lea eax, [edx + eax*8]
test cx, cx
je 0x4fe789
xor edx, edx
and ecx, 0xffff
mov dx, word [eax]
mov edi, edx
mov edx, dword [ebp - 0x1c]
movsx edi, word [edx + edi*2]
movsx ecx, word [edx + ecx*2]
mov dword [ebp - 0xc], edi
xor edi, edi
mov di, word [eax + 2]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov cx, word [eax + 4]
mov eax, dword [ebp - 8]
movsx edi, word [edx + edi*2]
movsx edx, word [edx + ecx*2]
push edi
push edx
push eax
mov ecx, ebx
call fcn.00500540
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push ecx
push edi
push edx
mov ecx, ebx
call fcn.00500540
jmp 0x4fe803
xor ecx, ecx
mov cx, word [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
movsx edi, word [ecx + edx*2]
xor edx, edx
mov dx, word [eax + 2]
movsx edx, word [ecx + edx*2]
mov dword [ebp - 8], edx
xor edx, edx
mov dx, word [eax + 4]
movsx eax, word [ecx + edx*2]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x24]
add ecx, 3
mov dword [ebp - 0xc], eax
cmp ecx, edx
jle 0x4fe7ce
push str.Index_pool_overrun.
call fcn.005588f0
mov eax, dword [ebp - 0xc]
add esp, 4
add ax, word [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 8]
add ax, word [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov word [ecx + edx*2 + 2], ax
add di, word [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov word [eax + edx*2 + 4], di
mov eax, dword [ebx + 0x18]
add eax, 3
mov dword [ebx + 0x18], eax
mov ecx, dword [ebp - 4]
movsx eax, word [ecx*2 + 0x687408]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4fe725
mov edx, dword [ebp - 0x30]
mov edi, dword [edx*4 + 0x67bb10]
test edi, edi
mov dword [ebp - 8], edi
je 0x4fed24
mov eax, dword [edi + 4]
lea ecx, [eax - 2]
lea edx, [ecx + ecx*2]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004f3fd0
mov ebx, eax
mov eax, dword [edi + 4]
add esp, 0xc
mov dword [ebp - 0x10], ebx
test eax, eax
mov dword [ebp - 4], 0
jle 0x4feca1
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4fe87d
push str._MultiTex
push 0x2a
push str.C:mm_src_agiworld_texsort.h
push str.Assertion_failed___s__d_:__s
call fcn.00558720
add esp, 0x10
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
cmp ecx, eax
jne 0x4fe894
push str.Vertex_pool_overrun.
call fcn.005588f0
add esp, 4
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 4]
mov esi, eax
shl esi, 5
add esi, ecx
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
add eax, dword [edi]
shl eax, 5
add eax, 0x68f658
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xffffffff
mov ebx, dword [edi + 0x10]
mov edx, dword [ecx + 0x28]
xor ecx, ecx
fld dword [eax + 0x18]
mov cx, word [edx + ebx*2]
mov dword [ebp - 0xc], ebx
fld st(0)
lea ebx, [ecx + ecx*2]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
fmul dword [ecx + ebx*4]
lea ecx, [ecx + ebx*4]
mov ebx, dword [edi + 0xc]
mov edi, dword [edi + 8]
fstp dword [ebp - 0xcc]
fld dword [ecx + 4]
fmul st(1)
fstp dword [ebp - 0xc8]
fld dword [ecx + 8]
fmul st(1)
xor ecx, ecx
mov cx, word [edx + ebx*2]
mov ebx, dword [ebp - 0x14]
fstp dword [ebp - 0xc4]
mov ebx, dword [ebx]
lea ecx, [ecx + ecx*2]
fstp st(0)
fld dword [eax + 0x14]
lea ecx, [ebx + ecx*4]
fld st(0)
fmul dword [ecx]
fstp dword [ebp - 0xa8]
fld dword [ecx + 4]
fmul st(1)
fstp dword [ebp - 0xa4]
fld dword [ecx + 8]
fmul st(1)
xor ecx, ecx
mov cx, word [edx + edi*2]
fstp dword [ebp - 0xa0]
lea edx, [ecx + ecx*2]
fstp st(0)
fld dword [eax + 0x10]
fld dword [ebx + edx*4 + 4]
fld dword [ebx + edx*4 + 8]
lea ecx, [ebx + edx*4]
mov edx, dword [ebp - 0x14]
fld st(2)
fmul dword [ecx]
mov edx, dword [edx + 4]
fld dword [ebp - 0xa8]
fxch st(3)
fmul st(4)
fld dword [ebp - 0xa4]
fxch st(3)
fmul st(5)
fld dword [ebp - 0xa0]
fxch st(3)
fstp dword [ebp - 0x9c]
fxch st(4)
fadd dword [ebp - 0x9c]
fxch st(1)
fstp dword [ebp - 0x98]
fxch st(2)
fadd dword [ebp - 0x98]
fxch st(2)
fstp dword [ebp - 0xc0]
fxch st(1)
fstp dword [ebp - 0xbc]
fxch st(1)
fstp dword [ebp - 0x94]
mov edi, dword [ebp - 0xc]
xor ecx, ecx
fadd dword [ebp - 0x94]
fld dword [ebp - 0xcc]
fld dword [ebp - 0xc8]
fld dword [ebp - 0xc4]
fxch st(2)
fadd dword [ebp - 0xc0]
fxch st(1)
fadd dword [ebp - 0xbc]
fxch st(3)
fstp dword [ebp - 0xb8]
fxch st(1)
fadd dword [ebp - 0xb8]
fxch st(1)
fstp dword [ebp - 0xfc]
fxch st(1)
fstp dword [ebp - 0xf8]
fstp dword [ebp - 0xf4]
mov cl, byte [edi + edx]
mov edi, dword [ebp - 8]
xor ebx, ebx
mov edi, dword [edi + 0xc]
fstp st(0)
mov bl, byte [edi + edx]
mov edi, ecx
mov ecx, ebx
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x24], ebx
mov ebx, dword [eax + 0x14]
fld dword [ebp - 0x24]
lea edi, [edi + edi*2]
mov dword [ebp - 0x28], ebx
fld dword [ebp - 0x28]
fld dword [edi*4 + 0x5b8bf4]
fld dword [edi*4 + 0x5b8bf8]
lea ebx, [ecx + ecx*2]
lea ecx, [edi*4 + 0x5b8bf0]
fld dword [ebx*4 + 0x5b8bf4]
fld dword [ebx*4 + 0x5b8bf8]
fxch st(5)
fmul dword [ecx]
lea edi, [ebx*4 + 0x5b8bf0]
fstp dword [ebp - 0xb4]
fxch st(2)
fmul dword [ebp - 0x24]
fxch st(1)
fmul dword [ebp - 0x24]
fxch st(3)
fmul dword [edi]
mov edi, dword [ebp - 8]
xor ebx, ebx
fxch st(2)
fmul dword [ebp - 0x28]
fxch st(4)
fmul dword [ebp - 0x28]
fxch st(1)
fstp dword [ebp - 0xb0]
mov ecx, dword [edi + 8]
fxch st(2)
fstp dword [ebp - 0xac]
mov bl, byte [ecx + edx]
mov edx, dword [0x706538]
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp - 0xc]
lea ebx, [edx + 0xec]
mov edx, dword [eax + 0x10]
push ebx
fxch st(1)
fstp dword [ebp - 0x100]
lea eax, [ecx + ecx*2]
mov dword [ebp - 0x2c], edx
fld dword [ebp - 0x2c]
fld dword [eax*4 + 0x5b8bf4]
fld dword [eax*4 + 0x5b8bf8]
fxch st(2)
fmul dword [eax*4 + 0x5b8bf0]
fxch st(1)
fmul dword [ebp - 0x2c]
fxch st(2)
fmul dword [ebp - 0x2c]
lea eax, [eax*4 + 0x5b8bf0]
lea edx, [ebp - 0xfc]
fld dword [ebp - 0x100]
fxch st(2)
fstp dword [ebp - 0x84]
fxch st(3)
fadd dword [ebp - 0x84]
fxch st(2)
fstp dword [ebp - 0x80]
fxch st(3)
fadd dword [ebp - 0x80]
fxch st(1)
fstp dword [ebp - 0x90]
lea ecx, [ebp - 0x48]
fstp dword [ebp - 0x8c]
fstp dword [ebp - 0x7c]
fadd dword [ebp - 0x7c]
fld dword [ebp - 0xb4]
fld dword [ebp - 0xb0]
fld dword [ebp - 0xac]
fxch st(2)
fadd dword [ebp - 0x90]
fxch st(1)
fadd dword [ebp - 0x8c]
fxch st(3)
fstp dword [ebp - 0x88]
fxch st(1)
fadd dword [ebp - 0x88]
fxch st(1)
fstp dword [ebp - 0xe4]
fxch st(1)
fstp dword [ebp - 0xe0]
fstp dword [ebp - 0xdc]
call fcn.00546580
lea ecx, [ebp - 0x48]
call fcn.00548400
push ecx
fstp dword [esp]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x48]
push edx
call fcn.004550f0
push ebx
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0x78]
call fcn.005465f0
fld dword [ebp - 0x74]
fld dword [ebp - 0x78]
fmul dword [ebp - 0x48]
fld dword [ebp - 0x70]
fxch st(2)
fmul dword [ebp - 0x44]
fxch st(2)
fmul dword [ebp - 0x40]
fxch st(2)
faddp st(1)
fxch st(1)
mov eax, dword [0x706538]
lea edx, [ebp - 0xf0]
add eax, 0x5c
lea ecx, [ebp - 0x60]
faddp st(1)
push eax
fadd st(0), st(0)
fld st(0)
fld st(1)
fxch st(1)
fmul dword [ebp - 0x78]
fxch st(1)
fmul dword [ebp - 0x74]
fxch st(1)
fsubr dword [ebp - 0x48]
fxch st(1)
fsubr dword [ebp - 0x44]
fxch st(1)
fstp dword [ebp - 0xf0]
fstp dword [ebp - 0xec]
fmul dword [ebp - 0x70]
fsubr dword [ebp - 0x40]
fstp dword [ebp - 0xe8]
call fcn.005465f0
fld dword [ebp - 0x58]
fsub dword [0x5951ac]
fld dword [ebp - 0x60]
fmul dword [ebp - 0x60]
fld st(1)
fmul st(2)
fld dword [ebp - 0x5c]
fmul dword [ebp - 0x5c]
fxch st(2)
faddp st(1)
fxch st(1)
push ecx
faddp st(1)
fstp dword [esp]
fstp st(0)
call fcn.00552ad0
fmul dword [0x5951cc]
add esp, 4
fcom dword [0x5951a8]
fnstsw ax
test ah, 0x40
jne 0x4fec7c
fld st(0)
fmul dword [ebp - 0x60]
fxch st(1)
fmul dword [ebp - 0x5c]
fxch st(1)
fsub dword [0x5951c0]
fxch st(1)
fsub dword [0x5951c0]
fxch st(1)
fstp dword [esi + 0x18]
fstp dword [esi + 0x1c]
jmp 0x4fec89
mov eax, 0x3f000000
fstp st(0)
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
mov ebx, dword [ebp - 0x10]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x4fe85d
mov esi, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov eax, 2
cmp ecx, eax
mov dword [ebp - 4], eax
jle 0x4fed13
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x24]
add ecx, 3
cmp ecx, eax
jle 0x4fecca
push str.Index_pool_overrun.
call fcn.005588f0
add esp, 4
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov cx, word [ebx + 0x1c]
mov word [eax + edx*2], cx
mov dx, word [ebp - 4]
add dx, word [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
mov word [ecx + eax*2 + 2], dx
mov dx, word [ebp - 4]
add dx, word [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
dec edx
mov word [ecx + eax*2 + 4], dx
mov eax, dword [ebx + 0x18]
add eax, 3
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
mov dword [ebp - 4], eax
jl 0x4fecb0
mov edi, dword [edi + 0x14]
test edi, edi
mov dword [ebp - 8], edi
jne 0x4fe82f
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
xor eax, eax
mov al, byte [esi + 0x50]
inc edx
add edi, 2
cmp edx, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], edi
jle 0x4fe41f
lea esp, [ebp - 0x114]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8