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

Disassembly:
sub esp, 0x48
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
push ebx
push esi
push edi
push ebp
mov eax, dword [ecx + 0x10]
mov esi, ecx
mov dword [esp + 0x48], 0
test eax, eax
jle 0x46f2cf
mov dword [esp + 0x54], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x48]
mov dword [esp + ecx*4 + 0x10], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esi + 0x14]
mov edi, dword [edx + ecx]
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46f2b0
mov dword [esp + 0x44], 0
mov edi, dword [esp + 0x1c]
add edi, 8
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x50]
fld dword [eax]
fabs
fcomp qword [0x471fc8]
fnstsw ax
test ah, 0x41
je 0x46f281
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x46ee72
fld dword [edi + 0x14]
mov eax, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
fsub dword [eax]
fdiv dword [eax + 4]
call fcn.0044cf40
mov ecx, dword [esi + 8]
mov dword [esp + ecx*4 + 0x10], eax
mov eax, dword [esi + 0x18]
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edx, dword [eax + 0x74]
jl 0x46eb9a
mov ecx, dword [edx]
cmp ecx, ebx
jle 0x46eb9a
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x46eb9a
mov ecx, dword [edx + 8]
cmp ecx, eax
jle 0x46eb9a
mov eax, dword [edx + 0x14]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x46eb8f
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
cmp ebx, ecx
je 0x46eb80
mov eax, dword [eax + 8]
test eax, eax
jne 0x46eb6f
test eax, eax
je 0x46eb8f
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eb9f
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eb9f
mov eax, 0xffffffff
test eax, eax
je 0x46ebba
push 0x140
push 0x47bac8
push 0x47bad8
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x46ed3c
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
shl edi, 2
mov ebp, dword [esp + 0x4c]
mov eax, dword [ecx + 0x14]
mov ebx, dword [esp + edi + 0x10]
lea edx, [ebx + ebx*2]
fld dword [eax + edx*4 + 8]
fcomp dword [ebp]
fnstsw ax
test ah, 0x41
jne 0x46ed3c
mov eax, dword [esi + 0xc]
mov dword [esp + edi + 0x3c], ebx
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x3c], edx
mov dword [esp + eax*8 + 0x30], edi
mov dword [esp + eax*8 + 0x2c], edi
lea eax, [esp + 0x2c]
push eax
call fcn.0046e690
cmp eax, 1
jne 0x46ed3c
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x78]
mov eax, dword [edi + 4]
mov edx, dword [edi]
cmp eax, edx
jg 0x46ecef
mov ebx, dword [edi + 8]
add ebx, eax
mov dword [edi + 4], ebx
nop
lea eax, [ebx + ebx*2]
mov ebp, 0
shl eax, 3
add eax, 4
push eax
call fcn.0044cfa0
add esp, 4
test eax, eax
je 0x46ec68
lea ebp, [eax + 4]
push fcn.0046fd10
push ebx
mov dword [eax], ebx
push 0x18
push ebp
call fcn.00402d50
test ebp, ebp
jne 0x46ec83
push 0xaa
push str.z:wncsrcinclude_sh3_array.h
push str.new_data
call fcn.0044c6f0
add esp, 0xc
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
jle 0x46ecc3
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
add eax, ecx
inc ebx
mov ecx, dword [esp + 0x18]
push eax
call fcn.0046fd30
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 0x18
add eax, 0x18
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp edx, ebx
jg 0x46ec93
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
nop
lea ebx, [ecx + ecx*2]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ebp + ebx*8]
call fcn.0046fd30
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x46ecea
push 3
call fcn.00470000
mov dword [edi + 0xc], ebp
jmp 0x46ed07
lea eax, [edx + 1]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edx + edx*2]
mov dword [edi], eax
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + edx*8]
call fcn.0046fd30
mov eax, dword [esp + 0x14]
push 0x471fb8
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x74]
call fcn.0046fd60
test eax, eax
je 0x46ed3c
push 0x148
push 0x47bae0
push 0x47baf0
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x18]
mov ecx, dword [esp + eax*4 + 0x10]
mov edx, dword [ebx + 0x74]
inc ecx
mov dword [esp + eax*4 + 0x10], ecx
mov ebp, dword [esp + 0x10]
test ebp, ebp
jl 0x46eda0
mov ecx, dword [edx]
cmp ecx, ebp
jle 0x46eda0
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x46eda0
mov ecx, dword [edx + 8]
cmp ecx, eax
jle 0x46eda0
mov eax, dword [edx + 0x14]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x46ed95
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
cmp ebx, ecx
je 0x46ed86
mov eax, dword [eax + 8]
test eax, eax
jne 0x46ed75
test eax, eax
je 0x46ed95
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eda5
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eda5
mov eax, 0xffffffff
test eax, eax
je 0x46edc0
push 0x14d
push 0x47baf8
push 0x47bb08
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x46f281
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
shl edi, 2
mov ebp, dword [esp + 0x28]
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + edi + 0x10]
lea ebx, [edx + edx*2]
fld dword [eax + ebx*4 + 8]
fcomp dword [ebp + 8]
fnstsw ax
test ah, 0x41
je 0x46f281
mov dword [esp + edi + 0x3c], edx
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + edx*4 + 0x10]
mov dword [esp + edx*4 + 0x3c], eax
lea eax, [esp + 0x2c]
mov dword [esp + edx*8 + 0x30], ebp
push eax
mov dword [esp + edx*8 + 0x30], edi
call fcn.0046e690
cmp eax, 0xffffffff
jne 0x46f281
lea eax, [esp + 0x2c]
mov edx, dword [esi + 0x18]
push eax
mov ecx, dword [edx + 0x78]
call fcn.0046fea0
mov ecx, dword [esp + 0x14]
push 0x471fb8
mov edx, dword [esp + 0x14]
push ecx
push edx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0x74]
call fcn.0046fd60
test eax, eax
je 0x46f281
push 0x155
push str.xy_clean.cxx
push str._err
call fcn.0044c6f0
add esp, 0xc
jmp 0x46f281
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
fld dword [edx]
fsub dword [eax]
fdiv dword [eax + 4]
call fcn.0044cf40
inc eax
mov ecx, dword [esi + 8]
mov ebx, dword [esi + 0x18]
mov dword [esp + ecx*4 + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edx, dword [ebx + 0x74]
test ebp, ebp
jl 0x46eeec
mov ecx, dword [edx]
cmp ecx, ebp
jle 0x46eeec
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x46eeec
mov ecx, dword [edx + 8]
cmp ecx, eax
jle 0x46eeec
mov eax, dword [edx + 0x14]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x46eee1
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
cmp ebx, ecx
je 0x46eed2
mov eax, dword [eax + 8]
test eax, eax
jne 0x46eec1
test eax, eax
je 0x46eee1
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eef1
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46eef1
mov eax, 0xffffffff
test eax, eax
je 0x46ef0c
push 0x11e
push 0x47ba98
push 0x47baa8
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x46f085
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
shl edx, 2
mov ebp, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
mov ebx, dword [esp + edx + 0x10]
lea edi, [ebx + ebx*2]
fld dword [eax + edi*4 + 8]
fcomp dword [ebp + 0x14]
fnstsw ax
test ah, 1
je 0x46f085
mov eax, dword [esi + 0xc]
mov dword [esp + edx + 0x3c], ebx
mov edx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x3c], edx
mov dword [esp + eax*8 + 0x30], ebp
mov dword [esp + eax*8 + 0x2c], ebp
lea eax, [esp + 0x2c]
push eax
call fcn.0046e690
cmp eax, 1
jne 0x46f085
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x78]
mov eax, dword [edi + 4]
mov edx, dword [edi]
cmp eax, edx
jg 0x46f04b
mov ebp, dword [edi + 8]
add ebp, eax
mov dword [edi + 4], ebp
lea eax, [ebp + ebp*2]
shl eax, 3
add eax, 4
push eax
call fcn.0044cfa0
add esp, 4
test eax, eax
je 0x46efc3
lea ebx, [eax + 4]
mov dword [eax], ebp
dec ebp
mov dword [esp + 0x18], ebx
js 0x46efc5
mov ecx, dword [esp + 0x18]
call fcn.0046fd10
mov eax, dword [esp + 0x18]
add eax, 0x18
dec ebp
mov dword [esp + 0x18], eax
jns 0x46efaa
jmp 0x46efc5
xor ebx, ebx
test ebx, ebx
jne 0x46efe0
push 0xaa
push str.z:wncsrcinclude_sh3_array.h
push str.new_data
call fcn.0044c6f0
add esp, 0xc
xor ebp, ebp
mov eax, dword [edi]
cmp eax, ebp
jle 0x46f020
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebp
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
add eax, ecx
inc ebp
mov ecx, dword [esp + 0x18]
push eax
call fcn.0046fd30
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 0x18
add eax, 0x18
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp edx, ebp
jg 0x46eff0
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
nop
lea ebp, [ecx + ecx*2]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ebx + ebp*8]
call fcn.0046fd30
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x46f046
push 3
call fcn.00470000
mov dword [edi + 0xc], ebx
jmp 0x46f063
lea eax, [edx + 1]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edx + edx*2]
mov dword [edi], eax
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + edx*8]
call fcn.0046fd30
mov eax, dword [esp + 0x14]
push 0x471fb8
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x74]
call fcn.0046fd60
test eax, eax
jne 0x46f2d1
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0x18]
mov ecx, dword [esp + eax*4 + 0x10]
mov edx, dword [ebx + 0x74]
dec ecx
mov dword [esp + eax*4 + 0x10], ecx
mov ebp, dword [esp + 0x10]
test ebp, ebp
jl 0x46f0e9
mov ecx, dword [edx]
cmp ecx, ebp
jle 0x46f0e9
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x46f0e9
mov ecx, dword [edx + 8]
cmp ecx, eax
jle 0x46f0e9
mov eax, dword [edx + 0x14]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x46f0de
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
cmp ebx, ecx
je 0x46f0cf
mov eax, dword [eax + 8]
test eax, eax
jne 0x46f0be
test eax, eax
je 0x46f0de
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46f0ee
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
jmp 0x46f0ee
mov eax, 0xffffffff
test eax, eax
je 0x46f109
push 0x12d
push 0x47bab0
push 0x47bac0
call fcn.0044c6f0
add esp, 0xc
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x46f281
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
shl edi, 2
mov ebp, dword [esp + 0x28]
mov eax, dword [ecx + 0x14]
mov edx, dword [esp + edi + 0x10]
lea ebx, [edx + edx*2]
fld dword [eax + ebx*4 + 8]
fcomp dword [ebp + 0x14]
fnstsw ax
test ah, 1
jne 0x46f281
mov dword [esp + edi + 0x3c], edx
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + edx*4 + 0x10]
mov dword [esp + edx*4 + 0x3c], eax
lea eax, [esp + 0x2c]
mov dword [esp + edx*8 + 0x30], edi
push eax
mov dword [esp + edx*8 + 0x30], ebp
call fcn.0046e690
cmp eax, 0xffffffff
jne 0x46f281
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x78]
mov eax, dword [edi + 4]
mov edx, dword [edi]
cmp eax, edx
jg 0x46f24b
mov ebx, dword [edi + 8]
add ebx, eax
mov dword [edi + 4], ebx
lea eax, [ebx + ebx*2]
shl eax, 3
add eax, 4
push eax
call fcn.0044cfa0
add esp, 4
test eax, eax
je 0x46f1c3
lea ebp, [eax + 4]
mov dword [eax], ebx
dec ebx
mov dword [esp + 0x18], ebp
js 0x46f1c5
mov ecx, dword [esp + 0x18]
call fcn.0046fd10
mov eax, dword [esp + 0x18]
add eax, 0x18
dec ebx
mov dword [esp + 0x18], eax
jns 0x46f1aa
jmp 0x46f1c5
xor ebp, ebp
test ebp, ebp
jne 0x46f1e0
push 0xaa
push str.z:wncsrcinclude_sh3_array.h
push str.new_data
call fcn.0044c6f0
add esp, 0xc
mov dword [esp + 0x20], 0
cmp dword [edi], 0
jle 0x46f21f
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x18]
add eax, ebx
add ebx, 0x18
push eax
call fcn.0046fd30
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 0x18
inc eax
mov edx, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp edx, eax
jg 0x46f1f3
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
nop
lea ebx, [ecx + ecx*2]
lea eax, [ecx + 1]
mov dword [edi], eax
lea ecx, [ebp + ebx*8]
call fcn.0046fd30
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x46f246
push 3
call fcn.00470000
mov dword [edi + 0xc], ebp
jmp 0x46f263
lea eax, [edx + 1]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edx + edx*2]
mov dword [edi], eax
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + edx*8]
call fcn.0046fd30
mov eax, dword [esp + 0x14]
push 0x471fb8
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x74]
call fcn.0046fd60
test eax, eax
jne 0x46f2d1
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
add eax, 0xc
inc ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], ecx
cmp ecx, 1
jle 0x46eafc
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x46eae5
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
add eax, 0xc
inc ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], ecx
cmp edx, ecx
jg 0x46eac4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret