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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [ebx + 0x1c]
push edi
push 0xc38
push 0
push ebp
mov dword [esp + 0x20], esi
call fcn.00493620
pxor xmm0, xmm0
push ebx
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x30], xmm0
movq qword [esp + 0x38], xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
call fcn.0043efa0
mov cl, byte [esp + 0x8c]
mov edi, eax
mov eax, dword [esp + 0x74]
push ebp
push 0x4eefc4
push ebx
mov dword [esp + 0x84], edi
mov dword [ebp], eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], esi
mov byte [ebp + 0x20], cl
mov dword [ebp + 0xc], edi
call fcn.004415d0
add esp, 0x1c
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
cmp byte [esp + 0x7c], al
je 0x46bdd7
cmp byte [ebp + 0x18], 2
jne 0x46c2d4
cmp byte [ebp + 0x1a], 5
jb 0x46c2d4
lea edx, [esp + 0x70]
push edx
push ebx
call fcn.0043f220
movzx eax, ax
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x78]
add esp, 8
test eax, eax
jne 0x46c2dd
jmp 0x46be10
lea ecx, [esp + 0x70]
push ecx
push ebx
call fcn.0043f1c0
mov cl, al
mov eax, dword [esp + 0x78]
add esp, 8
test eax, eax
jne 0x46c2dd
cmp byte [ebp + 0x18], 1
jne 0x46c2d4
cmp byte [ebp + 0x1a], 4
jb 0x46c2d4
cmp cl, 4
ja 0x46c2d4
movzx edx, byte [ebp + 0x1a]
add edx, edi
push edx
push ebx
call fcn.0043ef10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2cd
cmp byte [esp + 0x7c], al
je 0x46bee6
pxor xmm0, xmm0
movq qword [ebp + 0x4d8], xmm0
movq qword [ebp + 0x4e0], xmm0
movq qword [ebp + 0x4e8], xmm0
movq qword [ebp + 0x4f0], xmm0
push ebx
mov dword [ebp + 0x4f8], eax
call fcn.0043efa0
mov dword [ebp + 0x4ec], eax
mov eax, dword [ebp + 0x1c]
push eax
push ebx
mov dword [ebp + 0x4f0], eax
call fcn.0043ef50
add esp, 0xc
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov eax, dword [esp + 0x7c]
push eax
lea esi, [ebp + 0x6c]
push 1
mov edi, ebx
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
cmp byte [esp + 0x78], 0
mov ecx, dword [esp + 0x24]
mov dword [ebp + 0x54c], ecx
je 0x46bfc3
mov ecx, dword [esp + 0x6c]
movzx edx, cx
mov dword [esp + 0x10], edx
test ecx, ecx
jle 0x46bfbb
cmp edx, dword [ebp + 0x30]
jb 0x46bfbb
mov eax, 6
jmp 0x46c2d9
push 0
push 0
lea esi, [ebp + 0x24]
mov edi, ebx
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2cd
mov eax, dword [ebp + 0x30]
cmp eax, 1
jbe 0x46bf21
cmp dword [ebp + 0x3c], eax
jae 0x46bf21
xor eax, eax
cmp byte [esp + 0x78], al
sete al
add eax, 2
jmp 0x46c2d9
push 0
lea esi, [ebp + 0x4d8]
push 0
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
push eax
push 1
lea esi, [esp + 0x20]
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
push eax
lea esi, [ebp + 0x6c]
push 1
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
lea ecx, [ebp + 0x558]
push ecx
lea edx, [ebp + 0x554]
push edx
lea eax, [ebp + 0x550]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0046a150
add esp, 0x10
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov edx, dword [ebp + 0x30]
cmp edx, dword [ebp + 0x4e4]
jbe 0x46beab
mov eax, 3
jmp 0x46c2d9
mov esi, dword [ebp + 0x30]
mov dword [ebp + 0x10], esi
jmp 0x46bfe3
cmp dword [ebp + 0x30], 1
mov dword [esp + 0x10], 0
jbe 0x46bfdb
mov eax, 3
jmp 0x46c2d9
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
test ecx, ecx
js 0x46c2dd
mov eax, dword [esp + 0x74]
movzx ecx, byte [esp + 0x7c]
mov edi, dword [esp + 0x68]
push eax
push ebp
push edi
neg ecx
push ebx
sbb ecx, ecx
push edx
lea eax, [ebp + 0x4d8]
and ecx, 0x2000
push eax
lea esi, [ebp + 0x55c]
add ecx, 0x1000
push esi
call fcn.0046b9c0
add esp, 0x1c
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov ecx, dword [esi + 0x70]
add ecx, edi
push ecx
push ebx
call fcn.0043ef10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov edx, dword [esp + 0x7c]
push edx
push eax
lea esi, [ebp + 0x4b4]
mov edi, ebx
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
cmp dword [ebp + 0x5e0], 0xffff
jne 0x46c089
cmp byte [esp + 0x7c], al
jne 0x46c089
mov dword [ebp + 0x7e8], eax
jmp 0x46c1f3
mov esi, dword [esp + 0x68]
lea eax, [ebp + 0xc24]
push ebx
push eax
mov eax, dword [ebp + 0x610]
mov ecx, esi
call fcn.0046aac0
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov ecx, dword [ebp + 0x600]
add ecx, esi
push ecx
push ebx
call fcn.0043ef10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov edx, dword [esp + 0x7c]
push edx
push eax
lea esi, [esp + 0x44]
call fcn.00469e10
add esp, 8
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov eax, dword [esp + 0x48]
cmp eax, 0x100
ja 0x46c1de
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x70]
push ecx
push 0
push eax
push 0
push 0x28c
push edx
mov dword [ebp + 0x7e8], eax
call fcn.00443590
add esp, 0x18
cmp dword [esp + 0x70], 0
jne 0x46c1de
mov edx, dword [esp + 0x48]
test edx, edx
je 0x46c14e
mov ecx, eax
lea eax, [ebp + 0x7ec]
mov esi, edx
jmp 0x46c140
mov dword [eax], ecx
add eax, 4
add ecx, 0x28c
dec esi
jne 0x46c140
xor edi, edi
test edx, edx
je 0x46c1ad
movzx esi, byte [esp + 0x7c]
neg esi
sbb esi, esi
lea eax, [ebp + 0x7ec]
and esi, 0x3000
mov dword [esp + 0x64], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x68]
push edx
push ebp
push ecx
push ebx
push edi
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esi + 0x1000]
call fcn.0046b9c0
add esp, 0x1c
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c1de
mov edx, dword [esp + 0x48]
add dword [esp + 0x64], 4
inc edi
cmp edi, edx
jb 0x46c170
cmp byte [esp + 0x7c], 0
je 0x46c1b9
cmp edx, 1
jbe 0x46c1de
mov eax, dword [ebp + 0x604]
mov ecx, dword [ebp + 0x4c0]
add eax, dword [esp + 0x68]
push ecx
lea edi, [ebp + 0xbec]
mov esi, ebx
call fcn.0046a560
add esp, 4
mov dword [esp + 0x70], eax
lea esi, [esp + 0x3c]
call fcn.00469f70
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x46c2dd
cmp dword [ebp + 0x5cc], 0
jne 0x46c206
mov eax, 3
jmp 0x46c2d9
mov edx, dword [ebp + 0x4c0]
push 0
push 0
lea eax, [ebp + 0x548]
push eax
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x14], edx
call fcn.0046a150
add esp, 0x10
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
cmp byte [esp + 0x7c], al
jne 0x46c2b6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x46c2b6
cmp dword [ebp + 0x5e0], 0xffff
je 0x46c257
cmp byte [esp + 0x78], 0
mov byte [esp + 0x7c], 1
jne 0x46c25c
mov byte [esp + 0x7c], 0
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x68]
push ecx
push ebx
push eax
mov eax, dword [ebp + 0x5c4]
lea esi, [ebp + 0x49c]
push esi
mov ecx, edi
call fcn.0046a750
add esp, 0x10
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
cmp dword [ebp + 0x5e0], 0xffff
jne 0x46c2b6
mov edx, dword [ebp + 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 0x5c8]
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.0046b4b0
add esp, 0x14
mov dword [esp + 0x70], eax
test eax, eax
jne 0x46c2dd
mov edx, dword [esp + 0x10]
mov eax, ebp
call fcn.0046a430
mov dword [ebp + 0x544], eax
mov eax, dword [esp + 0x70]
jmp 0x46c2dd
cmp byte [esp + 0x78], 0
je 0x46c2dd
mov eax, 2
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x46c30f
cmp dword [esp + 0x38], 0
mov esi, dword [ecx + 0x1c]
je 0x46c2fd
lea edx, [esp + 0x38]
push edx
push ecx
call fcn.00441480
add esp, 8
mov eax, dword [esp + 0x34]
push eax
push esi
call fcn.0043fac0
mov eax, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret