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

Disassembly:
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x46dcfa
mov esi, dword [edi + 0x9c]
mov eax, dword [esp + 0x88]
mov ecx, dword [ebp + 0xc]
cmp esi, eax
jae 0x46d7f7
mov eax, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x10], eax
add eax, eax
jmp fcn.0046d816
mov eax, dword [ebp + 0x20]
xor edx, edx
div ecx
test edx, edx
mov dword [esp + 0x10], edx
jne 0x46d80c
mov dword [esp + 0x10], ecx
mov edx, ecx
mov eax, edx
mov dword [esp + 0x60], 1
add byte [eax], al
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + eax*4]
test ecx, ecx
mov dword [esp + 0x24], edx
je 0x46d911
test eax, eax
mov ecx, edx
je 0x46d915
mov ecx, dword [esi + eax*4 - 4]
mov edi, dword [esp + 0x60]
test edi, edi
je fcn.0046d92a
mov edi, dword [esp + 0x10]
dec edi
cmp eax, edi
jne fcn.0046d92a
mov eax, edx
jmp 0x46d92e
movsx esi, word [edx]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x28], esi
movsx edi, word [ecx]
movsx ebx, word [eax]
dec edx
add eax, 0x80
add ecx, 0x80
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x98]
push 1
push eax
push ecx
call 0x46c610
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, edx
jae 0x46d9be
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
movsx ecx, word [eax]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
movsx esi, word [edx + 0x80]
movsx ecx, word [eax]
mov dword [esp + 0x40], ecx
dec esp
and al, 0x40
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x46da37
cmp word [esp + 0x9a], 0
jne 0x46da37
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x6c]
sub eax, esi
imul eax, dword [esp + 0x18]
sbb byte [ebp - 0x3a743fec], cl
shl edx, 2
js 0x46da0c
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x46da2b
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46da2b
lea eax, [edx - 1]
jmp 0x46da2b
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x46da29
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46da29
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0x9a], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x46dab4
cmp word [esp + 0xa8], 0
jne 0x46dab4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edx
mov ebp, dword [esp + 0x7c]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x46da89
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x46daa8
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46daa8
lea eax, [edx - 1]
jmp 0x46daa8
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x46daa6
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46daa6
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xa8], ax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x46db3b
cmp word [esp + 0xb8], 0
jne 0x46db3b
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
lea eax, [edx + edx]
mov edx, eax
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, edx
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
test edx, edx
jl 0x46db10
shl eax, 7
add eax, edx
cdq
shl ebp, 8
in eax, 8
idiv ebp
test ecx, ecx
jle 0x46db2f
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46db2f
lea eax, [edx - 1]
jmp 0x46db2f
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x46db2d
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46db2d
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xb8], ax
and al, 0xb8
add byte [eax], al
invalid
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46dbba
cmp word [esp + 0xaa], 0
jne 0x46dbba
mov eax, dword [esp + 0x40]
sub eax, ebx
mov ebx, dword [esp + 0x38]
sub eax, ebx
add eax, edi
mov edi, dword [esp + 0x84]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, edi
test edx, edx
jl 0x46db93
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x46dbb2
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x46dbb2
lea eax, [edx - 1]
jmp 0x46dbb2
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x46dbb0
invalid
add dword [eax], eax
invalid