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

Disassembly:
sub esp, 0x74
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x6c], eax
or eax, 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x80]
test byte [ebp + 0x28], 1
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x2e8]
mov edx, dword [eax + 0x11a0]
push esi
push edi
mov edi, dword [eax + 0x11a4]
mov dword [esp + 0x68], edi
mov edi, dword [eax + 0x11a8]
mov esi, ecx
mov ecx, dword [eax + 0xc4]
mov dword [esp + 0x6c], edi
mov edi, dword [eax + 0x11ac]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x119c]
mov dword [esp + 0x70], edi
mov edi, dword [eax + 0x11b0]
mov eax, dword [eax + 0x11b4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
jne 0x4a6f5c
xor eax, eax
xor edi, edi
xor ebx, ebx
cmp ecx, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jne 0x4a6f8f
cmp ecx, 1
jne 0x4a6f53
lea edi, [esp + 0x44]
lea ebx, [esp + 0x68]
call fcn.00439420
jmp 0x4a6f58
cmp edx, ebx
sete al
test al, al
je 0x4a6f8f
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
call fcn.004a9b50
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x1c], ecx
jl 0x4a6f9e
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x14]
test byte [eax + 0x52c], 0x10
je 0x4a6fc2
mov edx, dword [eax + 0x2e8]
cmp byte [edx + 0xbb9], 0
jne 0x4a6fc2
test byte [eax + 0x545], 1
je 0x4a6fd0
mov eax, dword [eax + 0x2e8]
mov edx, dword [eax + 0x1b0]
jmp 0x4a6fd8
mov eax, edx
mov edx, dword [eax + 0x1ac]
mov eax, ecx
mov dword [esp + 0x20], eax
cmp eax, 0x12c
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0x12c
lea eax, [esp + 0x1c]
jg 0x4a6ff9
lea eax, [esp + 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x4a725b
fild dword [esp + 0x14]
fmul qword [0x5370c0]
fstp qword [esp + 0x58]
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x1c], eax
jl 0x4a7024
mov dword [ebp + 0x1c], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
add eax, esi
cmp esi, eax
jbe 0x4a7036
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add esi, edi
add ecx, eax
cmp esi, ecx
ja 0x4a7048
cmp esi, eax
jae 0x4a704e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0xc]
mov edi, esi
mov ebx, esi
shr edi, 2
and ebx, 3
cmp esi, edx
jb 0x4a7068
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 8]
cmp eax, edi
ja 0x4a7071
sub edi, eax
fild dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + edi*4]
mov edi, dword [ecx + ebx*4]
fcomp qword [esp + 0x58]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], ebx
fnstsw ax
test ah, 1
jne 0x4a717e
cmp dword [esp + 0x14], 0
jle 0x4a717e
mov dl, byte [ebp + 0x28]
and dl, 1
cmp edi, dword [ebp + 0x18]
mov byte [esp + 0x20], dl
je 0x4a717e
cmp dword [edi + 8], 0
jne 0x4a717e
mov eax, dword [esp + 0x20]
push eax
push ebp
mov esi, edi
call fcn.004a6e00
test al, al
jne 0x4a717e
test byte [edi + 0x18], 0x1f
ja 0x4a70eb
mov ecx, dword [edi + 0x20]
and ecx, 0x3f00
cmp ecx, 0x1000
jne 0x4a717e
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je 0x4a710b
push ecx
mov esi, ebp
call fcn.004a8d20
mov eax, dword [eax]
call fcn.004a8bc0
test al, al
jne 0x4a717e
mov ecx, dword [esp + 0x18]
cmp edi, dword [ebp + 0x18]
je 0x4a717a
mov edx, dword [edi + 0x20]
and edx, 0x3f00
cmp edx, 0x1000
sete al
test al, al
je 0x4a717a
cmp ecx, ebx
jle 0x4a7131
sub ecx, 1
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x10], ebx
jle 0x4a713c
sub dword [esp + 0x10], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, esi
cmp esi, eax
mov dword [esp + 0x30], 0
jbe 0x4a7156
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x2c]
sub esp, 0xc
mov ebx, esp
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
call fcn.004a12e0
mov ebx, ebp
call fcn.004a68f0
jmp 0x4a71e5
mov dword [esp + 0x18], ebx
movzx edx, byte [ebp + 0x28]
add dword [ebp + 0x1c], 1
and edx, 0xffffff01
push edx
push ebp
mov esi, edi
call fcn.004a6e00
test al, al
je 0x4a71e5
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4a71ba
push eax
mov esi, ebp
call fcn.004a8d20
mov eax, dword [eax]
lea ecx, [esp + 0x60]
push ecx
call fcn.004a8c40
test al, al
jne 0x4a71e5
movzx eax, word [edi + 0xe]
test ax, ax
je 0x4a71e1
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x8c]
and edx, 0x1f
add edx, 1
imul edx, dword [esp + 0x28]
movzx eax, ax
sub ecx, eax
cmp ecx, edx
jl 0x4a71e5
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
sub eax, 1
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x4a7015
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jle 0x4a724e
cmp dword [esp + 0x10], esi
jle 0x4a720c
sub dword [esp + 0x10], 1
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add edx, edi
cmp edi, edx
jbe 0x4a721e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub esp, 0xc
add edi, esi
add ecx, eax
cmp edi, ecx
mov ebx, esp
ja 0x4a7235
cmp edi, eax
jae 0x4a723b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [ebx], 0
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov ebx, ebp
call fcn.004a68f0
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
jne 0x4a729a
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x10]
add edi, dword [ebp + 0xc]
mov dword [esi], 0
mov eax, dword [ebp + 0xc]
cmp eax, edi
ja 0x4a7277
mov edx, dword [ebp + 0x10]
add edx, eax
cmp edi, edx
jbe 0x4a727d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00515015
add esp, 0x74
ret 8
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
add eax, edi
cmp edi, eax
jbe 0x4a72ac
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add edi, esi
add ecx, eax
cmp edi, ecx
ja 0x4a72be
cmp edi, eax
jae 0x4a72c4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
xor ecx, esp
mov dword [eax], 0
call fcn.00515015
add esp, 0x74
ret 8