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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457308
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x461b6c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
sar ecx, 4
cmp ecx, 4
jb 0x40c22f
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
xor edi, edi
sar eax, 4
cmp eax, edi
je 0x40c5d1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0x64
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 1
call fcn.00401e90
fld qword [0x459310]
mov esi, dword [ebx + 4]
fld qword [0x459468]
mov eax, dword [ebx + 8]
cmp esi, eax
jne 0x40c0bc
fstp st(1)
fstp st(0)
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp ecx, eax
je 0x40c023
push ecx
push eax
push eax
call fcn.004020f0
add esp, 0xc
mov dword [ebx + 8], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0x64
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 4]
mov byte [esp + 0x68], 5
sar ecx, 4
push ecx
lea ecx, [esp + 0x18]
call fcn.00401e90
mov esi, dword [esi + 4]
mov edx, dword [ebp + 0xc]
cmp esi, dword [edx + 8]
je 0x40c168
fld qword [esi + 8]
fld qword [esi]
fabs
fld qword [0x459310]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40c12c
fxch st(1)
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40c130
fld qword [esi + 8]
mov dword [esp + 0x44], edi
fld qword [esi]
fstp qword [esp + 0x4c]
fstp qword [esp + 0x54]
lea eax, [esp + 0x44]
mov byte [esp + 0x68], 6
push eax
jmp 0x40c150
fld qword [0x459310]
fld qword [0x459468]
fld qword [esi + 8]
fld qword [esi]
fabs
fcomp st(3)
fnstsw ax
test ah, 5
jp 0x40c0f8
fabs
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40c0fc
fstp st(0)
mov dword [esp + 0x44], edi
fld qword [esi + 8]
fld qword [esi]
fstp qword [esp + 0x4c]
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
mov byte [esp + 0x68], 2
push edx
jmp 0x40c116
fstp st(0)
fstp st(1)
fst qword [esp + 0x4c]
mov dword [esp + 0x44], 0x270f
fstp qword [esp + 0x54]
lea eax, [esp + 0x44]
mov byte [esp + 0x68], 3
push eax
lea ecx, [esp + 0x28]
call fcn.00401d30
add esi, 0x10
cmp esi, dword [ebx + 8]
jne 0x40c0b0
jmp 0x40c00b
fstp st(1)
fstp st(0)
fld qword [0x459468]
mov dword [esp + 0x44], 0x270f
fst qword [esp + 0x4c]
fstp qword [esp + 0x54]
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 7
push ecx
lea ecx, [esp + 0x18]
call fcn.00401d30
mov edx, dword [ebp + 0xc]
add esi, 0x10
cmp esi, dword [edx + 8]
jne 0x40c061
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0x64
lea eax, [esp + 0x34]
push eax
push 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x78], 9
call fcn.0040b5a0
add esp, 0x10
cmp eax, edi
je 0x40c245
mov eax, dword [esp + 0x40]
mov byte [esp + 0x68], 5
cmp eax, edi
je 0x40c1cc
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 1
cmp eax, edi
je 0x40c1f6
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x68], 0xffffffff
cmp eax, edi
je 0x40c22f
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x34]
cmp edi, 1
jge 0x40c2bb
mov eax, dword [esp + 0x40]
xor edi, edi
mov byte [esp + 0x68], 5
cmp eax, edi
je 0x40c27a
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 1
cmp eax, edi
je 0x40c2a4
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jmp 0x40c5aa
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
sar eax, 4
test eax, eax
je 0x40c49c
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00401e90
mov esi, dword [esi + 4]
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 8]
je 0x40c377
fld qword [esi + 8]
fld qword [esi]
fabs
fld qword [0x459310]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40c336
fxch st(1)
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40c33a
fld qword [esi + 8]
mov dword [esp + 0x44], 0
fld qword [esi]
fstp qword [esp + 0x4c]
fstp qword [esp + 0x54]
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 0xa
push ecx
jmp 0x40c35a
fstp st(1)
fstp st(0)
fld qword [0x459468]
mov dword [esp + 0x44], 0x270f
fst qword [esp + 0x4c]
fstp qword [esp + 0x54]
lea edx, [esp + 0x44]
mov byte [esp + 0x68], 0xb
push edx
lea ecx, [esp + 0x18]
call fcn.00401d30
mov eax, dword [ebp + 8]
add esi, 0x10
mov byte [esp + 0x68], 9
cmp esi, dword [eax + 8]
jne 0x40c2f0
xor esi, esi
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.00401e90
test edi, edi
jle 0x40c3b5
mov ebx, dword [esp + 0x40]
nop
test esi, esi
jl 0x40c487
cmp esi, edi
jge 0x40c487
push ebx
lea ecx, [esp + 0x28]
call fcn.00401d30
inc esi
add ebx, 0x18
cmp esi, edi
jl 0x40c390
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x34]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x44], 0
call fcn.0040b5a0
xor edi, edi
add esp, 0x10
cmp eax, edi
je 0x40c498
mov eax, dword [esp + 0x40]
mov byte [esp + 0x68], 5
cmp eax, edi
je 0x40c40a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 1
cmp eax, edi
je 0x40c434
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x68], 0xffffffff
cmp eax, edi
je 0x40c22f
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Array_Index
push 0x40
push str.d:devwncdevwncobjinternalincwctl_sh3_array.hpp
call fcn.00401230
mov edi, dword [esp + 0x34]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, esi
sar eax, 4
cmp edi, eax
jbe 0x40c4d3
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
sub ecx, eax
push ecx
push edx
mov ecx, ebx
call fcn.00405bd0
jmp 0x40c509
jae 0x40c509
mov ecx, edi
shl ecx, 4
add ecx, esi
cmp ecx, edx
je 0x40c509
mov eax, edx
cmp edx, edx
je 0x40c506
mov esi, dword [eax]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
add eax, 0x10
add ecx, 0x10
cmp eax, edx
jne 0x40c4e6
mov dword [ebx + 8], ecx
xor esi, esi
test edi, edi
jle 0x40c542
mov ecx, dword [esp + 0x40]
xor edx, edx
add ecx, 0x10
test edx, edx
jl 0x40c487
cmp esi, edi
jge 0x40c487
mov eax, dword [ebx + 4]
fld qword [ecx]
fld qword [ecx - 8]
add eax, edx
fstp qword [eax]
inc esi
add ecx, 0x18
add edx, 0x10
fstp qword [eax + 8]
cmp esi, edi
jl 0x40c518
mov eax, dword [esp + 0x40]
mov byte [esp + 0x68], 5
test eax, eax
je 0x40c56c
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 1
test eax, eax
je 0x40c596
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push ecx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp eax, ecx
mov dword [esp + 0x68], 0xffffffff
je 0x40c5d1
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401170
push edx
push 0x18
push eax
call fcn.004406c2
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret