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

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call fcn.004607e0
mov esi, eax
test eax, eax
je 0x4608f0
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
mov ebx, dword [ebx + 0x1c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], cx
lea edx, [edx + edx - 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
lea eax, [eax + eax*2]
mov dword [ebx + 0x60], 2
shl eax, 2
mov dword [ebx + 0x68], 0
movzx edx, word [eax + 0x4c77e2]
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x80], edx
movzx edx, word [eax + 0x4c77e0]
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 0x4c77e4]
movzx eax, word [eax + 0x4c77e6]
mov dword [ebx + 0x90], edx
mov edx, 2
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov eax, esi
mov dword [ebx + 0x78], edx
add esp, 0x14
pop ebx
pop esi
ret
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x462228
cmp byte [eax], 0x31
jne 0x462228
cmp edx, 0x38
jne 0x462228
test esi, esi
je 0x462218
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 0
test eax, eax
je 0x462200
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4621f0
cmp edi, 0xffffffff
mov eax, 6
cmove edi, eax
test ecx, ecx
js 0x4621e0
mov edx, 1
cmp ecx, 0xf
jg 0x4621d0
mov eax, dword [esp + 0x1c]
sub eax, 1
cmp eax, 8
ja 0x462218
lea eax, [ecx - 8]
cmp eax, 7
ja 0x462218
cmp ebx, 8
jne 0x462218
cmp edi, 9
ja 0x462218
cmp dword [esp + 0x18], 4
ja 0x462218
cmp ecx, 8
jne 0x462023
cmp edx, 1
jne 0x462218
cmp ecx, 8
mov eax, 9
mov dword [esp + 0x10], edx
cmove ecx, eax
mov dword [esp + 8], 0x16c4
mov dword [esp + 4], 1
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call dword [esi + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test eax, eax
mov ebx, eax
je 0x462247
mov dword [esi + 0x1c], eax
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x30], ecx
mov dword [eax], esi
mov dword [eax + 4], 0x2a
mov dword [eax + 0x1c], 0
mov eax, 1
shl eax, cl
lea ecx, [edx + 7]
mov dword [ebx + 0x2c], eax
movd xmm3, ecx
mov dword [esp + 0x14], eax
sub eax, 1
mov dword [ebx + 0x34], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
sub eax, 1
movd xmm0, dword [esp + 0x10]
movd xmm1, eax
lea eax, [edx + 9]
mov edx, 0xaaaaaaab
mul edx
punpckldq xmm0, xmm3
mov eax, dword [esp + 0x14]
shr edx, 1
movd xmm2, edx
punpckldq xmm1, xmm2
punpcklqdq xmm0, xmm1
movups xmmword [ebx + 0x4c], xmm0
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x38], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov dword [ebx + 0x40], eax
mov dword [esp + 8], 2
mov eax, dword [ebx + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x16c0], 0
mov dword [ebx + 0x44], eax
mov eax, 1
lea ecx, [edx + 6]
shl eax, cl
mov dword [ebx + 0x169c], eax
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call dword [esi + 0x20]
mov edx, dword [ebx + 0x169c]
mov dword [ebx + 8], eax
lea ecx, [edx*4]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x462230
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x462230
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x462230
test eax, eax
je 0x462230
add eax, edx
mov dword [ebx + 0x84], edi
mov dword [ebx + 0x1698], eax
lea eax, [edx + edx*2 - 3]
mov dword [ebx + 0x16a4], eax
mov eax, dword [esp + 0x18]
mov byte [ebx + 0x24], 8
mov dword [ebx + 0x88], eax
mov dword [ebp + 8], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4608d0
sub ecx, 0x10
mov edx, 2
jmp 0x461fdc
cmp ecx, 0xfffffff1
jl 0x462218
neg ecx
xor edx, edx
jmp 0x461fdc
mov dword [esi + 0x24], 0x464210
jmp 0x461fbb
mov dword [esi + 0x20], 0x4641f0
mov dword [esi + 0x28], 0
jmp 0x461fb0
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffa
jmp 0x46221d
mov eax, dword [str.insufficient_memory]
mov dword [ebx + 4], 0x29a
mov dword [esi + 0x18], eax
mov dword [esp], esi
call fcn.00461ea0
mov eax, 0xfffffffc
jmp 0x46221d