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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x5fa040]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0xa8]
push esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, dword [ebx + 0x84]
push edi
mov edi, dword [ebx + 0x80]
mov dword [esp + 0x4c], eax
mov eax, edi
and eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
cmp eax, 0xffffffff
je 0x46ac08
mov edx, dword [ebx + 0x98]
mov eax, edx
mov ecx, dword [ebx + 0x9c]
and eax, ecx
cmp eax, 0xffffffff
je 0x46ac08
push esi
push edi
push ecx
push edx
call fcn.005a7c60
mov ecx, edx
mov dword [esp + 0x10], eax
push ecx
push eax
push esi
push edi
mov dword [esp + 0x24], ecx
call fcn.005a7d80
cmp eax, dword [ebx + 0x98]
jne 0x46abfc
cmp edx, dword [ebx + 0x9c]
je 0x46ac0f
add dword [esp + 0x10], 1
adc dword [esp + 0x14], 0
jmp 0x46ac0f
xor edi, edi
mov esi, 0x40000000
mov eax, dword [ebx]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x24], eax
shrd edx, ecx, 0xa
shr ecx, 0xa
add edx, edi
adc ecx, esi
add edx, 0x450
adc ecx, 0
xor ebx, ebx
nop
shrd edx, ecx, 7
inc ebx
shr ecx, 7
mov eax, edx
or eax, ecx
jne 0x46ac30
mov dword [esp + 0x18], ebx
xor ecx, ecx
mov ebx, dword [esp + 0x28]
shrd edi, esi, 7
inc ecx
shr esi, 7
mov eax, edi
or eax, esi
jne 0x46ac48
add ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [ebx + 0xac]
mul ecx
mov edi, eax
mov eax, dword [esp + 0x10]
mul ecx
mov ecx, eax
add edi, edx
mov eax, dword [ebx + 0xb0]
sub eax, esi
test edi, edi
jb 0x46acf4
ja 0x46ac84
cmp ecx, eax
jbe 0x46acf4
xor eax, eax
add esi, ecx
adc eax, edi
xor ecx, ecx
cmp ecx, eax
jne 0x46ad5f
mov eax, dword [esp + 0x24]
push esi
push eax
mov eax, dword [eax]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x46acac
lea eax, [edi + 2]
jmp 0x46acec
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x46acc6
push eax
push dword [ebx + 0xb4]
push edi
call fcn.0058aed0
add esp, 0xc
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x46acde
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 8
mov dword [ebx + 0xb4], edi
xor eax, eax
mov dword [ebx + 0xb0], esi
test eax, eax
jne 0x46aeba
mov eax, dword [0x5c1760]
lea esi, [ebx + 8]
movzx ecx, word [esi + 0x70]
lea edx, [esp + 0x6e]
mov dword [esp + 0x68], eax
mov ax, word [0x5c1764]
mov word [esp + 0x6c], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x6f], cl
or ecx, 0xffffffff
push 2
mov byte [esp + 0x72], al
call fcn.0044a290
not eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x68]
push 0xc
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call eax
add esp, 0xc
cmp eax, 0xc
je 0x46ad76
mov eax, 9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x80], 1
jle 0x46aee3
cmp dword [ebx + 0xef4], 0
jne 0x46ada1
lea ecx, [ebx + 0xef8]
mov dword [ebx + 0xef4], 1
call fcn.0045d070
mov eax, dword [esi + 0x70]
lea edi, [ebx + 8]
mov dword [ebx + 0xeec], eax
mov ecx, 0x26
mov eax, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0xef0], eax
lea esi, [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebx + 0xf18], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xf14], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0xf08], eax
lea eax, [esp + 0x68]
mov dword [ebx + 0xf1c], eax
mov dword [ebx + 0xf0c], 0
mov dword [ebx + 0xf10], 0
mov dword [ebx + 0xf20], ebx
mov ecx, dword [esi + 0x78]
mov eax, ecx
mov edx, dword [esi + 0x7c]
and eax, edx
mov dword [esp + 0x68], 0x46a980
mov dword [esp + 0x6c], 0x46aaa0
cmp eax, 0xffffffff
je 0x46aecc
mov eax, ecx
or eax, edx
je 0x46aecc
mov dword [ebx + 0xef8], ecx
xor eax, eax
cmp ecx, dword [esi + 0x78]
jne 0x46afb2
cmp eax, dword [esi + 0x7c]
jne 0x46afb2
mov edi, ecx
shr edi, 0xa
add edi, 0x450
add edi, ecx
cmp edi, ecx
jb 0x46afb2
cmp dword [ebx + 0xdb8], edi
je 0x46ae6d
mov ecx, ebx
call fcn.0046a750
mov edx, dword [ebx + 0xa4]
lea ecx, [ebx + 0xef8]
mov dword [ebx + 0xdb8], edi
mov eax, dword [esi + 0x84]
mov dword [ebx + 0xefc], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebx + 0xf00], eax
mov dword [ebx + 0xf04], edx
call fcn.0045d220
test eax, eax
jne 0x46aeba
push dword [esp + 0x1c]
mov dx, word [esi + 0x70]
mov ecx, dword [esp + 0x50]
call fcn.004697e0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x78]
xor eax, eax
mov edi, dword [esi + 0x7c]
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, edx
and eax, edi
mov dword [esp + 0x30], 0x46a710
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x10], ecx
cmp eax, 0xffffffff
je 0x46afc9
mov eax, dword [esi + 0x8c]
test eax, eax
setg cl
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x46afc9
xor eax, eax
cmp eax, edi
jne 0x46afb2
mov eax, edx
mov dword [esp + 0x18], 0
shr eax, 0xa
add eax, 0x50
add eax, edx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], edi
jb 0x46afb2
ja 0x46af64
cmp eax, edx
jb 0x46afb2
lea edi, [eax + 0x400]
mov eax, dword [ebx + 0xdbc]
test eax, eax
je 0x46af7c
cmp edi, dword [ebx + 0xdb8]
je 0x46afa6
mov ecx, ebx
call fcn.0046a750
mov eax, dword [ebx]
push edi
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0xdbc], eax
test eax, eax
je 0x46ad5f
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xdb8], edi
lea edx, [eax + 0x400]
mov dword [esp + 0x14], edx
jmp 0x46afcb
mov eax, 5
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
mov dword [esp + 0x18], 0
cmp dword [esp + 0x20], eax
lea edi, [esp + 0x30]
cmove edi, eax
mov eax, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x68], edi
cmovne eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], 0
test ecx, ecx
je 0x46b007
mov eax, dword [ebx + 0xdbc]
jmp 0x46b009
xor eax, eax
push dword [ebx + 4]
lea ecx, [esp + 0x54]
push dword [ebx]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push edi
push esi
push 0
push 0
push dword [esp + 0x4c]
lea ecx, [ebx + 0xb8]
push dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push eax
call fcn.0046a050
add esp, 0x30
test eax, eax
jne 0x46aeba
mov ecx, dword [esp + 0x58]
mov edi, ecx
mov edx, dword [esp + 0x5c]
neg edi
and edi, 3
add edi, ecx
adc eax, edx
cmp dword [esp + 0x10], 0
mov dword [esp + 0x28], eax
je 0x46b0ba
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
push esi
push dword [ebx + 0xdbc]
push eax
mov eax, dword [eax]
call eax
xor edx, edx
add esp, 0xc
cmp eax, esi
mov ecx, 9
cmove ecx, edx
jne 0x46b114
mov eax, dword [esp + 0x14]
mov esi, edi
sub esi, dword [esp + 0x60]
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call eax
xor edx, edx
add esp, 0xc
cmp eax, esi
mov ecx, 9
cmove ecx, edx
jne 0x46b114
mov ecx, dword [esp + 0x58]
lea esi, [ebx + 8]
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [ebx]
push ecx
push dword [esp + 0x5c]
lea ecx, [ebx + 0xa8]
push dword [esp + 0x5c]
call fcn.004696c0
add esp, 0x10
test eax, eax
jne 0x46aeba
mov eax, dword [esp + 0x50]
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
adc dword [esp + 0x3c], eax
add dword [esp + 0x40], edi
mov eax, dword [esp + 0x28]
adc dword [esp + 0x44], eax
cmp dword [esp + 0x20], 0
jne 0x46aea6
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x68]
jmp 0x46aff3
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x70]
pop esi
pop ebx
xor ecx, esp
call fcn.00587d99
mov esp, ebp
pop ebp
ret