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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
push 0x1d
mov ebx, ecx
mov dword [0x5a1100], 0x4052f8
pop edi
push edi
call dword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov esi, eax
mov dword [esp + 0x1c], esi
pop ecx
test esi, esi
je 0x4bde7f
mov dword [esi], edi
lea eax, [esi + 4]
mov esi, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x78]
add esi, 0x36
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
call fcn.0043806a
mov ecx, dword [0x5a3070]
add esi, 0x78
push ecx
mov dword [ecx + 8], eax
lea eax, [esi + 0x41]
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x78]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x7c]
push 0
push dword [ebx + 0x6c]
shr eax, 1
push dword [ebx + 0x68]
and al, 1
movzx eax, al
push eax
call fcn.00464db6
mov ecx, dword [ebx + 0x78]
call fcn.0043806a
cmp byte [0x5a4ef0], 0
mov dword [esp + 0x20], eax
jne 0x466321
mov eax, 0xa64e
mov ecx, 0xaa64
cmp word [ebx + 0x74], ax
je 0x466325
movzx ecx, word [ebx + 0x74]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x7c]
push 2
mov word [esp + 0x28], cx
pop ecx
shr eax, 4
mov word [esp + 0x26], cx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
test al, 1
jne 0x46635b
mov eax, 0x100
mov word [esp + 0x36], ax
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x24]
push 0x14
call fcn.0044b538
push 0xa
pop ecx
mov esi, 0x4130dc
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edx, 0x401d50
lea ecx, [esp + 0x24]
call fcn.0045acd8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov ecx, dword [ebx + 0x78]
push 0x28
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x64
mov dword [esp + 0x4c], 0x42100040
call fcn.0044b538
push 0xa
pop ecx
mov esi, 0x4130dc
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edx, 0x405cd0
lea ecx, [esp + 0x24]
call fcn.0045acd8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov ecx, dword [ebx + 0x78]
add eax, 0x64
push 0x14
pop esi
push 0x28
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], 0xc0300040
call fcn.0044b538
mov ecx, dword [ebx + 0x78]
mov edx, 0x405ca8
push 4
call fcn.0044b538
mov al, byte [ebx + 0x50]
mov edx, 0x5a10ec
mov ecx, dword [ebx + 0x78]
push 8
mov byte [esp + 0x13], al
call fcn.0044b538
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0xf]
push 1
call fcn.0044b538
movzx eax, byte [esp + 0xf]
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x78]
push eax
call fcn.0044b538
mov ecx, dword [ebx + 0x78]
mov edx, 0x5a10c0
push 0x29
call fcn.0044b538
mov ecx, dword [ebx + 0x78]
mov edx, 0x5a4a80
push esi
call fcn.0044b538
mov esi, 0x4130c8
lea edi, [esp + 0x24]
mov edx, 0x4025cc
lea ecx, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0045acd8
or eax, 0xffffffff
mov dword [esp + 0x2c], 0x10175c4
mov word [esp + 0x30], ax
mov byte [esp + 0x34], 3
push 0x12
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x28]
call fcn.0044b538
mov esi, 0x4130c8
lea edi, [esp + 0x24]
push 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
push 0x405c8c
push 0x19
push dword [esp + 0x1c]
mov dword [esp + 0x34], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x30]
add esp, 0xc
push 2
pop eax
push 0x12
mov word [esp + 0x34], ax
mov byte [esp + 0x38], al
call fcn.0044b538
mov esi, dword [esp + 0x18]
mov edx, esi
mov ecx, dword [ebx + 0x78]
push 0x1d
call fcn.0044b538
push esi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
cmp byte [0x5a304c], 0
pop ecx
je 0x466505
push edi
push dword [esp + 0x20]
mov ecx, ebx
push dword [esp + 0x28]
call fcn.00464cef
mov ecx, dword [ebx + 0x78]
call fcn.0043806a
test al, 1
jne 0x4bde96
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret
call fcn.004575aa
test al, al
jne 0x466298
call fcn.004fd4dc
jmp 0x4662ae
mov ecx, dword [ebx + 0x78]
mov edx, 0x40241c
push 1
call fcn.0044b538
jmp 0x466515