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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0x6c]
mov eax, dword [edi + 0x70]
lea esi, [edi + 0x54]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x2c]
lea eax, [eax + edx*4 + 0x34]
push eax
mov dword [esp + 0x20], eax
call fcn.004034e0
mov dword [esp + 0x40], eax
test eax, eax
jne 0x46beb0
mov ecx, dword [esp + 0x3c]
call fcn.00433db0
push 0x523b44
push 0x51620c
mov edx, eax
call fcn.004351e0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov ecx, dword [edi + 0x78]
mov ebx, dword [edi + 0x74]
mov ebp, dword [edi + 0x7c]
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, 0xd
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
xor edi, edi
add ebx, eax
add ebp, eax
cmp dword [esi + 0x70], edi
jle 0x46bf99
mov dword [esp + 0x14], edi
nop
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x46bf02
call fcn.004c6862
mov esi, dword [esi + 0x24]
add esi, dword [esp + 0x14]
mov edx, dword [esi]
mov dword [ebx], edx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x14]
mov edx, ebp
sub edx, dword [esp + 0x40]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x18], edx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
push ebp
call fcn.004cab90
add ebp, dword [esi + 0x24]
add esp, 0xc
mov edx, ebp
sub edx, dword [esp + 0x40]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push ebp
call fcn.004cab90
mov edx, dword [esi + 0x18]
add ebp, dword [esi + 0x28]
add dword [esp + 0x20], 0x38
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x28], ecx
mov edx, dword [esi + 0x34]
mov dword [ebx + 0x2c], edx
inc edi
add esp, 0xc
add ebx, 0x30
cmp edi, dword [eax + 0x70]
mov esi, eax
jl 0x46bee0
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x48]
mov ebx, dword [ecx]
mov edi, dword [esi + 0x30]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
lea esp, [esp]
mov edx, dword [esi + 0x48]
mov esi, dword [esi + 0x30]
mov dword [esp + 0x2c], edx
test edi, edi
je 0x46bfc2
cmp edi, esi
je 0x46bfcb
call fcn.004c6862
mov eax, dword [esp + 0x40]
cmp ebx, dword [esp + 0x2c]
je 0x46c130
test edi, edi
jne 0x46c0f0
call fcn.004c6862
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46bfee
call fcn.004c6862
mov eax, dword [ebx + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46bff4
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, eax
mov ecx, ebp
sub ecx, dword [esp + 0x40]
movzx esi, ax
mov dword [edx], ecx
mov word [ebp], si
add ebp, 2
test edi, edi
jne 0x46c0f7
call fcn.004c6862
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46c034
call fcn.004c6862
mov eax, dword [ebx + 0xc]
movzx esi, si
push esi
push eax
push ebp
call fcn.004cab90
mov eax, dword [esp + 0x1c]
add ebp, esi
mov ecx, ebp
sub ecx, dword [esp + 0x4c]
add esp, 0xc
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
test edi, edi
jne 0x46c0fe
call fcn.004c6862
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46c074
call fcn.004c6862
mov edx, dword [ebx + 0x28]
mov eax, dword [edx]
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
test edi, edi
jne 0x46c105
call fcn.004c6862
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46c099
call fcn.004c6862
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x10]
test esi, esi
je 0x46c0a7
cmp esi, eax
je 0x46c0ac
call fcn.004c6862
cmp dword [esp + 0x18], edi
je 0x46c10d
mov eax, dword [esp + 0x10]
inc dword [eax + 8]
test esi, esi
jne 0x46c109
call fcn.004c6862
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x18]
jne 0x46c0d0
call fcn.004c6862
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
mov dword [ebp], eax
lea esi, [esp + 0x14]
add ebp, 4
call fcn.0046dbe0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jmp 0x46c084
mov eax, dword [edi]
jmp 0x46bfe4
mov eax, dword [edi]
jmp 0x46c02a
mov eax, dword [edi]
jmp 0x46c06a
mov eax, dword [edi]
jmp 0x46c08f
mov esi, dword [esi]
jmp 0x46c0c2
add dword [esp + 0x10], 0xc
lea esi, [esp + 0x20]
call fcn.0046d7f0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
jmp 0x46bfb0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
push ecx
push edx
mov ebx, eax
mov edi, esi
call fcn.0046c1c0
test al, al
jne 0x46c1a7
cmp dword [esi], 0
je 0x46c15d
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x46c150
push 0x128
call fcn.004c688d
mov edi, eax
add esp, 4
test edi, edi
je 0x46c185
mov ecx, edi
call fcn.004349d0
mov dword [edi + 0x124], 0
mov edx, edi
jmp 0x46c187
xor edx, edx
push 0x523b64
push 0x51620c
mov dword [esi], edx
call fcn.004351e0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 0x10