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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x14], edx
mov eax, dword [eax + 4]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
movsx esi, word [edx]
mov edx, dword [ebx + 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebx]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x58], 0
cmp esi, edx
ja 0x46bdab
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x18]
mov ax, word [ecx + 2]
movsx ecx, ax
lea esi, [ecx + 2]
cmp esi, edx
ja 0x46bc66
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
cwde
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x48], 2
movsx eax, word [ecx]
mov dword [ebx + 0x64], 0xffffffff
mov dword [ebx + 0x28], eax
push ecx
call fcn.004670d0
add esp, 0x10
dec eax
je 0x46bdde
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x10], eax
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebp - 0x18], edx
test eax, eax
je 0x46bca0
mov ecx, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov dword [ebp - 0x3c], 0
lea eax, [edx + eax*8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov edi, dword [ecx + 4]
movsx eax, word [edx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edx
lea eax, [eax + eax*4]
mov esi, ecx
lea eax, [ecx + eax*8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
jmp 0x46bba0
cmp eax, 2
je 0x46bd77
mov word [esi], 0
mov eax, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
mov dword [esi + 0x24], eax
mov dword [eax + 0x20], esi
mov dword [ebp - 0x38], esi
je 0x46bc32
mov eax, dword [ebp - 0x30]
add esi, 0x28
inc eax
add edi, 8
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x2c]
jae 0x46bcb0
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov word [esi + 0xe], dx
mov word [esi + 0xc], ax
mov edx, dword [ebp - 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add eax, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
add eax, edx
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
movsx eax, byte [ecx]
and eax, 3
jne 0x46bb70
mov eax, dword [ebp - 0x38]
mov word [esi], 1
mov dword [esi + 0x24], eax
mov dword [ebp - 0x38], esi
mov dword [eax + 0x20], esi
cmp esi, dword [ebp - 0x34]
jne 0x46bb93
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x3c], eax
movsx eax, word [edx]
cmp dword [ebp - 0x3c], eax
jge 0x46bb93
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
movsx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
jmp 0x46bb93
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea esi, [ecx + 0xb]
mov eax, dword [ebx + 0x20]
and esi, 0xfffffff8
push eax
push esi
push edx
push 0x28
push edi
call fcn.00469710
add esp, 0x20
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46bca3
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x18], esi
mov ax, word [edx + 2]
jmp 0x46bad2
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x50]
lea esi, [edx + eax*4]
xor eax, eax
jmp 0x46bcd6
cwde
mov ebx, dword [ebp - 0x18]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dword [edx], eax
mov ax, word [ecx]
inc eax
add edx, 4
add ecx, 2
cmp edx, esi
jb 0x46bcc0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], 0
mov esi, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 4
jmp 0x46bd0f
or ch, 1
mov word [esi], cx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
add esi, 0x28
cmp esi, dword [ebp - 0x2c]
jae 0x46bca0
cmp esi, dword [ebp - 0x40]
je 0x46bdf1
mov cx, word [esi + 0xc]
mov bx, word [esi + 0xe]
mov word [ebp - 0x52], cx
mov word [ebp - 0x54], bx
mov al, byte [ebp - 0x4c]
mov byte [esi + 2], al
mov eax, dword [esi + 0x20]
movsx edx, word [ebp - 0x52]
movsx edi, word [eax + 0xc]
movsx ebx, word [eax + 0xe]
movsx eax, word [ebp - 0x54]
sub edi, edx
sub ebx, eax
mov edx, ebx
mov eax, edi
call fcn.0046b8d0
mov cx, word [esi]
test cl, 3
mov dword [ebp - 0x4c], eax
mov byte [esi + 3], al
jne 0x46bd00
mov al, byte [ebp - 0x4c]
mov dl, byte [esi + 2]
cmp al, dl
je 0x46bd81
movsx edx, dl
movsx eax, al
add edx, eax
jne 0x46bd06
jmp 0x46bd00
mov word [esi], 2
jmp 0x46bb7e
cmp al, 4
jne 0x46bd00
mov eax, dword [ebp - 0x48]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.00463910
add esp, 0x10
test eax, eax
je 0x46bd06
mov cx, word [esi]
jmp 0x46bd00
push eax
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 3
mov eax, dword [ebx + 0x2c]
and esi, 0xfffffffc
push eax
push esi
push edx
push 4
push edi
call fcn.00469710
add esp, 0x20
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x46bca3
mov dword [ebx + 0x24], esi
jmp 0x46baba
mov dword [ebx + 0x48], 0xfffffffe
mov dword [ebx + 0x64], 1
jmp 0x46bb00
mov ebx, dword [esi + 0x24]
mov dx, word [esi + 0xc]
movsx ecx, dx
movsx eax, word [ebx + 0xc]
sub ecx, eax
mov ax, word [esi + 0xe]
mov word [ebp - 0x52], dx
mov word [ebp - 0x54], ax
movsx edx, ax
movsx eax, word [ebx + 0xe]
sub edx, eax
mov eax, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
call fcn.0046b8d0
add ebx, 0x28
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], eax
jmp 0x46bd2d